[Bug 1529504] [NEW] Alien postinst/prerm scripts expecting integer argument
Terry Cain
terry at terrys-home.co.uk
Sun Dec 27 19:08:35 UTC 2015
Public bug reported:
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.
** Affects: alien (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to alien in Ubuntu.
https://bugs.launchpad.net/bugs/1529504
Title:
Alien postinst/prerm scripts expecting integer argument
Status in alien package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alien/+bug/1529504/+subscriptions
More information about the foundations-bugs
mailing list