Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Chef Client
-
Labels:None
-
Environment:
Any Debian environment or environment using Debian packages.
Description
The package in question is for the Zabbix monitoring agent (which isn't in a repository, so must be installed from package) and it has an "odd" version number:
$ dpkg-deb -W /tmp/zabbix-agent_1.8.3-2_amd64.deb
zabbix-agent 1:1.8.3-2
This is the regular expression currently used by Chef::Provider::Package::Dpkg to parse this output:
/([a-z\d\-\+]+)\t([\w\d.-]+)/
which results in the version always appearing to be "1" because the colon is not accepted. Since 1 != 1:1.8.3-2, a reinstall happens every time. This can easily be fixed by adding a colon to the list of acceptable characters:
/([a-z\d\-\+]+)\t([\w\d.:-]+)/
^
This bug still seems to exist in the current git version...
Activity
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
31d 4h 31m | 1 | Eric Herot | 08/Nov/10 11:55 PM | |||||
|
98d 20h 4m | 1 | Michael MacDonald | 15/Feb/11 7:59 PM | |||||
|
755d 2h 41m | 1 | Bryan McLellan [Opscode] | 11/Mar/13 10:41 PM |