Skip to content

Commit

Permalink
also include deb packages that are in hold status
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed May 1, 2014
1 parent 0e23e5b commit 88923e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/patchman-client
Expand Up @@ -142,7 +142,7 @@ function get_installed_debs {
OLDIFS=${IFS}
IFS="
"
for i in $(dpkg-query -W --showformat="\${Status}\|\${Package} \${Version} \${Architecture}\n" | grep '^install ok installed' | sed -e 's/^install ok installed|//') ; do
for i in $(dpkg-query -W --showformat="\${Status}\|\${Package} \${Version} \${Architecture}\n" | egrep '^(install)|(hold) ok installed' | sed -e 's/^\(install\|hold\) ok installed|//g') ; do
IFS=${OLDIFS}
read name fullversion arch <<<$(echo "${i}" | cut -d " " -f 1,2,3)
read remaining release <<<$(echo "${fullversion}" | sed -e "s/\(.*\)-\(.*\)/\1 \2/")
Expand Down

0 comments on commit 88923e9

Please sign in to comment.