Modify ↓
Ticket #812 (closed defect: invalid)
BoundPackage version=foo-bar instead of version=foo release=bar
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawkSsFd6lqQkgZsyjbW-povvFQdV1OAQFVw | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 1.0.1 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
a BoundPackage? with attributes version=foo release=bar will cause a ValueError?:
File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/RPMng.py", line 209, in VerifyPackage?
version, release = entry.get('version').split('-')
ValueError?: need more than 1 value to unpack
See attached patch
Attachments
Change History
Changed 13 years ago by https://www.google.com/accounts/o8/id?id=AItOawkSsFd6lqQkgZsyjbW-povvFQdV1OAQFVw
- Attachment RPMng.py-attr-ver-rel.patch added
comment:1 Changed 13 years ago by https://www.google.com/accounts/o8/id?id=AItOawkSsFd6lqQkgZsyjbW-povvFQdV1OAQFVw
This is not a bug.
This was an error in my config. I am using new-style Pkgmgr definitions and did not define an instance of the Package.
<BoundPackage? name="foo" version="a" release="b" type="yum" arch="x86_64">
was what I had. now I ahve
<BoundPackage? name="foo" type="yum"> <Instance ... </BoundPackage?>
Sorry for the noise
Note: See
TracTickets for help on using
tickets.
patch to accept version= release= and just version=