Codebase list debian-goodies / 1af08c2
Fix wrong error "no package" if package already had been downloaded Closes: #847732 Axel Beckert 7 years ago
2 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
44 closes: #795812)
55 * debmany:
66 + Fix error message upon non-existing package.
7 + Fix wrong error "no package" if package already had been
8 downloaded. (Closes: #847732)
79
810 -- Axel Beckert <abe@debian.org> Thu, 08 Sep 2016 09:20:01 +0200
911
260260
261261 if [ -z "$file" ]
262262 then
263 debug "Mode3: Determining the path of '$package' using 'apt-get -q2 --print-uris --reinstall install'" # comment
264 aptdata=`apt-get -q2 --print-uris --reinstall install "$package" 2>/dev/null | grep "$package"_`
263 debug "Mode3: Determining the path of '$package' using 'apt-get -q2 --print-uris download'" # comment
264 aptdata=`apt-get -q2 --print-uris download "$package" 2>/dev/null | grep "$package"_`
265265 if [ -z "$aptdata" ]
266266 then
267267 errormsg "There was an error looking for package '$package'."
268 aptdata=`apt-get -q2 --print-uris --reinstall install "apt" 2>/dev/null | grep "apt"_`
268 aptdata=`apt-get -q2 --print-uris download "apt" 2>/dev/null | grep "apt"_`
269269 if [ $? -ne 0 ] || [ -z "$aptdata" ] ; then
270270 # If looking for apt fails then there is something amiss
271271 error "Apt-get might not be working properly Possible failure when running 'apt-get -q2 --print-uris --reinstall install \"$package\"'"