Alien postinst/prerm scripts expecting integer argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alien (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Using Ubuntu 15.04, alien package version 8.93
I was converting an RPM to a deb and supplied --scripts so that it generates the prerm/postinst etc... scripts when installing.
It created the .deb successfully but the postrm and preinst scripts produced an error during install.
In postrm there is an if statement on line 9 which uses "-eq" to check if 0 and then removes some installed files. From what I've read the support scripts are called with strings for the first argument, Changed it to "if [ "$1" = "remove" ];" and that worked as expected.
The same goes for preinst but it should check for "install" (I'm assuming there are more instances where this occurs).
The file I used was the "QConvergeConsole CLI for Linux (x64)" from http://
I would attach the RPM but I doubt QLogic would be happy me redistributing their software.