View Single Post
Posts: 21 | Thanked: 5 times | Joined on Feb 2008 @ Germany
#5
Originally Posted by miind View Post
looks like the 0.7 version is very broke!
Yes, indeed!

I'm totally new to the debian package stuff, wanted to build up an own installation package today and since the hello-world-app is THE example on how to do it, I was so keen to build & install this package on my N800/OS2008 to see how it looks like.

And I'm completely shocked that the standard example for making debian packages for maemo didn't even uninstall correctly!

This is how I was able to fix it:

I changed /var/lib/dpkg/info/hello-world-app.postrm to:

Code:
#!/bin/sh
#Remove the desktop entries from the configuration files

home_data="hello-world-home.desktop"
sb_data="hello-world-sb.desktop"
tn_data="hello-world-tn.desktop"

path="/etc/hildon-desktop"
home_conf="home.conf"
sb_conf="statusbar.conf"
tn_conf="tasknavigator.conf"

sed "/$home_data/d" $path/$home_conf > home_conf.tmp
mv home_conf.tmp $path/$home_conf
sed "/$sb_data/d" $path/$sb_conf > sb_conf.tmp
mv sb_conf.tmp $path/$sb_conf
sed "/$tn_data/d" $path/$tn_conf > tn_conf.tmp
mv tn_conf.tmp $path/$tn_conf
Afterwards I was able to uninstall the package and instead I took the maemopad-2.1 as example for building up my own package...

Last edited by sommerfee; 2008-04-20 at 17:48.
 

The Following 2 Users Say Thank You to sommerfee For This Useful Post: