Alien postinst/prerm scripts expecting integer argument

Bug #1529504 reported by Terry Cain
6
This bug affects 1 person
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://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/SearchByProduct.aspx?ProductCategory=39&Product=935&Os=65

I would attach the RPM but I doubt QLogic would be happy me redistributing their software.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.