Seite 1 von 1

"Bad package custom name" in opsi-package-manager

Verfasst: 12 Jul 2012, 15:55
von SisterOfMercy
I am currently building packages and expanding my knowledge about OPSI.

When I tried to install the citrix-plugin package I built with opsi-package-manager it failed with the error "Bad package custom name".
opsi-makeproductfile worked correctly, it created citrix-plugin_12.3.0.8-1.opsi in /home/opsiproducts/citrix-plugin/
opsi-package-manager -i citrix-plugin_12.3.0.8-1.opsi gives an error.
Renaming the .opsi file to citrix-plugin-1.opsi fixes the error, and I can install the package.

critical: line 300 in 'main' in file '/usr/bin/opsi-makeproductfile'
critical: line 439 in '__init__' in file '/usr/lib/pymodules/python2.6/OPSI/Util/Product.py'
critical: line 337 in 'forcePackageCustomName' in file '/usr/lib/pymodules/python2.6/OPSI/Types.py'
critical: ==>>> Bad package custom name: 'citrix-plugin_12.3.0.8-1.opsi'
ERROR: Bad package custom name: 'citrix-plugin_12.3.0.8-1.opsi'

Unfortunately this is not the entire error, my buffer was not big enough. I tried renaming the .opsi file again to citrix-plugin_12.3.0.8-1.opsi, to recreate the error, but eh, now it works!

From line 337 in /usr/lib/pymodules/python2.6/OPSI/Types.py there is a regex or something which probably doesn't like the original underscore.. or something..
I hope this helps

Re: "Bad package custom name" in opsi-package-manager

Verfasst: 12 Jul 2012, 18:39
von d.oertel
Hi,

is it possible that you perhaps called

Code: Alles auswählen

opsi-makeproductfile -i citrix-plugin_12.3.0.8-1.opsi
instead of

Code: Alles auswählen

opsi-package-manager -i citrix-plugin_12.3.0.8-1.opsi
because this would give you the described error ?

regards

d.oertel

Re: "Bad package custom name" in opsi-package-manager

Verfasst: 12 Jul 2012, 18:47
von SisterOfMercy
Bah, you are right! :oops: :oops:

How could I miss that? Apparently I need to drink more coffee. :shock:
My bad, another fake bug.