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

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

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

Beitrag 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
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

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

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

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

Beitrag 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.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten