diff --git a/debian/changelog b/debian/changelog index 87daabb..3694cee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ closes: #795812) * debmany: + Fix error message upon non-existing package. + + Fix wrong error "no package" if package already had been + downloaded. (Closes: #847732) -- Axel Beckert Thu, 08 Sep 2016 09:20:01 +0200 diff --git a/debmany/debmany b/debmany/debmany index 9bf2390..521b6d9 100755 --- a/debmany/debmany +++ b/debmany/debmany @@ -261,12 +261,12 @@ if [ -z "$file" ] then - debug "Mode3: Determining the path of '$package' using 'apt-get -q2 --print-uris --reinstall install'" # comment - aptdata=`apt-get -q2 --print-uris --reinstall install "$package" 2>/dev/null | grep "$package"_` + debug "Mode3: Determining the path of '$package' using 'apt-get -q2 --print-uris download'" # comment + aptdata=`apt-get -q2 --print-uris download "$package" 2>/dev/null | grep "$package"_` if [ -z "$aptdata" ] then errormsg "There was an error looking for package '$package'." - aptdata=`apt-get -q2 --print-uris --reinstall install "apt" 2>/dev/null | grep "apt"_` + aptdata=`apt-get -q2 --print-uris download "apt" 2>/dev/null | grep "apt"_` if [ $? -ne 0 ] || [ -z "$aptdata" ] ; then # 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\"'"