tazpkg diff modules/recharge @ rev 968

Modules "get" and "install": initial support for Cooker contain two architectures packages in one "packages" folder
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 26 12:33:58 2018 +0200 (2018-11-26)
parents ce0db4329d29
children 9d683c983e2e
line diff
     1.1 --- a/modules/recharge	Wed Dec 16 12:01:42 2015 +0200
     1.2 +++ b/modules/recharge	Mon Nov 26 12:33:58 2018 +0200
     1.3 @@ -74,7 +74,8 @@
     1.4  esac
     1.5  
     1.6  for path in $repo_to_recharge; do
     1.7 -	[ ! -s "$path/mirror" ] && continue	# skip
     1.8 +	# skip?
     1.9 +	[ ! -s "$path/mirror" ] && continue
    1.10  	cd "$path"
    1.11  	# Mirror URL will have a trailing slash
    1.12  	mirror=$(cat mirror); mirror="${mirror%/}/"
    1.13 @@ -92,13 +93,16 @@
    1.14  	if [ -h ID  ]; then mv -f ID  ID.lnk;  cat ID.lnk  > ID;  rm ID.lnk;  fi
    1.15  	if [ -h IDs ]; then mv -f IDs IDs.lnk; cat IDs.lnk > IDs; rm IDs.lnk; fi
    1.16  
    1.17 -	[ -f ID ]  && mv ID  ID.bak					# Compatibility with "old" ID
    1.18 +	# Compatibility with "old" ID
    1.19 +	[ -f ID ]  && mv ID  ID.bak
    1.20  	[ -f IDs ] && mv IDs IDs.bak
    1.21  	action 'Checking...'
    1.22  	get_from_mirror IDs
    1.23  
    1.24 -	[ -e 'IDs' ] && awk '{print $1}' IDs > ID	# Compatibility with "old" ID
    1.25 -	[ -e 'IDs' ] && _ 'Database timestamp: %s' "$(date -d "@$(awk '{print $2}' IDs)" "+%x %R")"
    1.26 +	# Compatibility with "old" ID
    1.27 +	[ -e 'IDs' ] && awk '{print $1}' IDs > ID
    1.28 +	[ -e 'IDs' -a -z "$quiet" ] && \
    1.29 +		_ 'Database timestamp: %s' "$(date -d "@$(awk '{print $2}' IDs)" "+%x %R")"
    1.30  
    1.31  	# Check if recharging is needed
    1.32  	if [ -f 'IDs' ] && [ -f 'packages.info' ] && [ -f 'files.list.lzma' ] && \