tazpkg diff modules/recharge @ rev 953
revision of german messages
author | Hans-G?nter Theisgen |
---|---|
date | Mon Oct 09 17:16:43 2017 +0100 (2017-10-09) |
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 Oct 09 17:16:43 2017 +0100 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' ] && \