Issue #12935 has been reported by Christian McHugh.
----------------------------------------
Bug #12935: apt::force does not detect package version
https://projects.puppetlabs.com/issues/12935
Author: Christian McHugh
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: apt::force
Branch:
If squeeze-backports repo is added to a debian host, the version detection does
not take package sources into account.
For example, if a host already has winbind installed, and you attempt to
install squeeze-backports winbind the version detection only checks the package
is installed. This results in not apt::force not upgrading the package.
>From puppet debug
Apt::Force[winbind]/Exec[/usr/bin/aptitude -y -t squeeze-backports install
winbind]: Executing check '/usr/bin/dpkg -s winbind | grep -q 'Status: install''
The /usr/bin/dpkg -s winbind | grep -q 'Status: install' check is not robust
enough unless a package version number is hard-coded.
We've whipped up a solution through aptitude
aptitude show ${name}/${release} 2>&1 | grep 'State:' | grep -qv 'not'
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.