spk rev 97
spk-mirror: we need ARCh to create packages lits
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 29 18:09:54 2012 +0000 (2012-05-29) |
parents | 1433c665171e |
children | 0df5690de5fd |
files | spk-mirror |
line diff
1.1 --- a/spk-mirror Mon May 28 22:29:47 2012 +0200 1.2 +++ b/spk-mirror Tue May 29 18:09:54 2012 +0000 1.3 @@ -74,12 +74,6 @@ 1.4 addto_list() { 1.5 cd $pkgsdir 1.6 1.7 - # We need ARCH set the get correct version. 1.8 - ARCH=$(fgrep ARCH= /etc/slitaz/cook.conf | cut -d "\"" -f 2) 1.9 - case "$ARCH" in 1.10 - arm|x86_64) arch="-${ARCH}" ;; 1.11 - esac 1.12 - 1.13 echo "$PACKAGE-${VERSION}${EXTRAVERSION}${arch}" >> packages.list 1.14 $CHECKSUM $(basename $pkg) >> packages.$SUM 1.15 # 1.16 @@ -236,6 +230,11 @@ 1.17 mkdir -p $tmpdir 1.18 extract_receipt $tmpdir $pkg 1.19 extract_fileslist $tmpdir $pkg 1.20 + # We need ARCH set the get correct version. 1.21 + ARCH=$(fgrep ARCH= /etc/slitaz/cook.conf | cut -d "\"" -f 2) 1.22 + case "$ARCH" in 1.23 + arm|x86_64) arch="-${ARCH}" ;; 1.24 + esac 1.25 source $tmpdir/receipt 1.26 addto_list && status 1.27 unset_receipt