# HG changeset patch # User Christophe Lincoln # Date 1338314994 0 # Node ID 7da09d0db03c94510d65899ac674df7fbfb8756a # Parent 1433c665171e6ae5697e7c6991d6865a59c14e39 spk-mirror: we need ARCh to create packages lits diff -r 1433c665171e -r 7da09d0db03c spk-mirror --- a/spk-mirror Mon May 28 22:29:47 2012 +0200 +++ b/spk-mirror Tue May 29 18:09:54 2012 +0000 @@ -74,12 +74,6 @@ addto_list() { cd $pkgsdir - # We need ARCH set the get correct version. - ARCH=$(fgrep ARCH= /etc/slitaz/cook.conf | cut -d "\"" -f 2) - case "$ARCH" in - arm|x86_64) arch="-${ARCH}" ;; - esac - echo "$PACKAGE-${VERSION}${EXTRAVERSION}${arch}" >> packages.list $CHECKSUM $(basename $pkg) >> packages.$SUM # @@ -236,6 +230,11 @@ mkdir -p $tmpdir extract_receipt $tmpdir $pkg extract_fileslist $tmpdir $pkg + # We need ARCH set the get correct version. + ARCH=$(fgrep ARCH= /etc/slitaz/cook.conf | cut -d "\"" -f 2) + case "$ARCH" in + arm|x86_64) arch="-${ARCH}" ;; + esac source $tmpdir/receipt addto_list && status unset_receipt