tazpkg diff tazpkg @ rev 692

Add extra category (get-scripts common to any SliTaz version)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 17:15:05 2014 +0100 (2014-11-19)
parents 697c7b137c24
children d25da6d9be7a
line diff
     1.1 --- a/tazpkg	Wed Oct 29 13:07:15 2014 +0200
     1.2 +++ b/tazpkg	Wed Nov 19 17:15:05 2014 +0100
     1.3 @@ -2528,7 +2528,7 @@
     1.4  				action "Creating backup of the last packages list..."
     1.5  				for i in packages.desc packages.$SUM packages.txt \
     1.6  					packages.list packages.equiv files.list.lzma \
     1.7 -					mirrors
     1.8 +					extra.list mirrors
     1.9  				do
    1.10  					mv -f $i $i.bak 2>/dev/null
    1.11  				done
    1.12 @@ -2539,10 +2539,13 @@
    1.13  				download_from "$(cat mirror)" packages.$i
    1.14  			done
    1.15  			download_from "$(cat mirror)" files.list.lzma
    1.16 +			download_from "$(cat mirror)" extra.list
    1.17  			download_from "$(sed 's|packages/.*||' < mirror)" mirrors
    1.18  
    1.19  			if [ -f "packages.list.bak" ]; then
    1.20  				diff -u packages.list.bak packages.list | grep ^+[a-z] > packages.diff
    1.21 +				[ -f "extra.list.bak" ] &&
    1.22 +				diff -u extra.list.bak extra.list | grep ^+[a-z] >> packages.diff
    1.23  				sed -i s/+// packages.diff
    1.24  				title 'Mirrored packages diff'
    1.25  				cat packages.diff