tazpkg rev 947

modules/get: get_pkg_cookmode(): file may be absent.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 05 22:36:04 2017 +0300 (2017-06-05)
parents dbf40347342a
children 99722514f5fe
files modules/get
line diff
     1.1 --- a/modules/get	Mon Jun 05 15:51:03 2017 +0300
     1.2 +++ b/modules/get	Mon Jun 05 22:36:04 2017 +0300
     1.3 @@ -438,7 +438,7 @@
     1.4  		if (index(" " $10 " ", " " pkg " ")) { printf("%s/%s-%s.tazpkg", base, $1, $2); exit; }
     1.5  	}' $PKGS/packages.info)"
     1.6  
     1.7 -	if [ -n "$pkgfile" ]; then
     1.8 +	if [ -n "$pkgfile" -a -f "$PKGS/$pkgfile" ]; then
     1.9  		echo "$pkgfile"
    1.10  	else
    1.11  		# Proceed to get package as usual (non-local)