Modify ↓
Ticket #467 (closed defect: fixed)
Encaps need better string splitting regexps
Reported by: | dclark | Owned by: | dclark |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.9.5 Release |
Component: | bcfg2-client | Version: | 0.9.x |
Keywords: | Cc: |
Description
There are 3 issues with the regular expression code used to parse "file=" Pkgmgr entries:
- epkg.log is a special case and should just be ignored.
- File names like openssh-4.6p1+2-encap-ix86-linux_debian_etch.tar.gz fail, I think due to the "+" character, which is actually a recommended encap convention to denote site-specific/packaging changes.
- File names like bcfg2-python-apt-0.6.19-encap-ix86-linux_debian_etch.tar.gz fail, I think due to the multiple "-" characters before the version.
I think all of these need to be fixed in both Client (src/lib/Client/Tools/Encap.py) and Server (src/lib/Server/Plugins/Pkgmgr.py) side code.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Here is a (hopefully correctly) commented version of the current regexps for posterity: