View Single Post
zerojay's Avatar
Posts: 2,669 | Thanked: 2,555 times | Joined on Apr 2007
#1
I'm using py2deb for packaging and I'm running into two problems.

1) My package isn't meant to actually install anything. All it does is edit the Internet Radio database. If my src folder is empty, the package doesn't get built. As a workaround, I've added a small dummy file to be installed/removed.

2) I cannot get pre/post install or pre/post remove scripts to run whatsoever. I've tried several different forms of the line and nothing has worked out for me. So those of you that are using it, what line are you using exactly?

(qole, I checked out your build script and your solution didn't work for me either.)

Here's the error I get:
dpkg (subprocess): unable to execute new pre-installation script: Exec format error
subprocess pre-installation script returned error exit status 2

The package is in extras-devel as "digitallyimported", so you can try it yourself to see the errors generated.

The line I'm using right now, which also isn't working is:
p.preinstall = "preinst.sh"
p.preremove = "prerm.sh"

Any ideas?

Last edited by zerojay; 2010-02-10 at 14:22.