"Bad package custom name" in opsi-package-manager
Verfasst: 12 Jul 2012, 15:55
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
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