![]() |
2010-01-11
, 22:23
|
|
Posts: 1,070 |
Thanked: 1,604 times |
Joined on Sep 2008
@ Helsinki
|
#2
|
I optified my project, but when i uninstall it with dpkg -r, it leaves behind the symbolic links that i made in the postinst.
how can i remove these automatically during uninstallation?
this is what i have in postinst now:
Code:#!/bin/sh # postinst script for boulderdash # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # <new-version> # * <postinst> `abort-remove' # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' # <failed-install-package> <version> `removing' # <conflicting-package> <version> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ln -s /opt/maemo/usr/bin/boulderdash /usr/bin/ ln -s /opt/maemo/usr/share/icons/hicolor/64x64/apps/boulderdash_64x64.png /usr/share/icons/hicolor/64x64/apps/ chmod a+x /opt/maemo/usr/bin/boulderdash ;; abort-upgrade|abort-remove|abort-deconfigure) rm /usr/bin/boulderdash rm /usr/share/icons/hicolor/64x64/apps/boulderdash_64x64.png ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0
The Following User Says Thank You to VDVsx For This Useful Post: | ||
![]() |
2010-01-12
, 17:40
|
Posts: 21 |
Thanked: 14 times |
Joined on Dec 2009
@ Turku, Finland
|
#3
|
Why are you doing the symbolics links in the postinst script instead of in the rules script ?
The Following User Says Thank You to timperi For This Useful Post: | ||
![]() |
2010-01-12
, 19:06
|
|
Posts: 1,070 |
Thanked: 1,604 times |
Joined on Sep 2008
@ Helsinki
|
#4
|
Because i don't know any better. Thanks for the tip, I'll look into that rules-script
The Following User Says Thank You to VDVsx For This Useful Post: | ||
![]() |
2010-01-12
, 19:47
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#5
|
If you put the same code in the rules script, it will solve your problem.
If you want to learn a bit more about these scripts, you can find some info here: http://www.debian.org/doc/debian-pol...erscripts.html
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-01-12
, 19:52
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#6
|
I optified my project, but when i uninstall it with dpkg -r, it leaves behind the symbolic links that i made in the postinst.
how can i remove these automatically during uninstallation?
this is what i have in postinst now:
![]() |
2010-01-12
, 20:10
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#7
|
The Following User Says Thank You to Sasler For This Useful Post: | ||
![]() |
2010-01-12
, 20:16
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#8
|
Does maemo-optify work in Windows using MADDE? If not, what would be the best way to optify in Windwos?
![]() |
2010-01-12
, 20:20
|
Posts: 434 |
Thanked: 325 times |
Joined on Sep 2009
|
#9
|
I don't know. But if you're sending packages to autobuilder, maemo-optify works there. Testing before uploading hard, if it doesn't work.
![]() |
2010-01-12
, 20:24
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#10
|
how can i remove these automatically during uninstallation?
this is what i have in postinst now: