diff --git a/debian/changelog b/debian/changelog index 2fd0cc0..87daabb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ * Add a rudimentary which-pkg-broke-build. (It's a wrapper around which-pkg-broke which does the same but for build dependencies; closes: #795812) + * debmany: + + Fix error message upon non-existing package. -- Axel Beckert Thu, 08 Sep 2016 09:20:01 +0200 diff --git a/debmany/debmany b/debmany/debmany index dc985da..9bf2390 100755 --- a/debmany/debmany +++ b/debmany/debmany @@ -266,9 +266,9 @@ if [ -z "$aptdata" ] then errormsg "There was an error looking for package '$package'." - aptdata=`apt-get -q2 --print-uris --reinstall install "apt-get" 2>/dev/null | grep "apt-get"_` + aptdata=`apt-get -q2 --print-uris --reinstall install "apt" 2>/dev/null | grep "apt"_` if [ $? -ne 0 ] || [ -z "$aptdata" ] ; then - # If looking for apt-get fails then there is something amiss + # If looking for apt fails then there is something amiss error "Apt-get might not be working properly Possible failure when running 'apt-get -q2 --print-uris --reinstall install \"$package\"'" else error "The package does not exist."