# HG changeset patch # User Pascal Bellard # Date 1397808493 0 # Node ID 945464cd19b4f9e90b7663873a9049257dd7a486 # Parent 8f0a394d16824c103d2fae0d8ee4bc85a73582e4 cook: unsupported arch packages are not broken diff -r 8f0a394d1682 -r 945464cd19b4 cook --- a/cook Fri Apr 18 08:33:38 2014 +0100 +++ b/cook Fri Apr 18 08:08:13 2014 +0000 @@ -306,6 +306,7 @@ *.tar) tar xf $SRC/$TARBALL ;; *.zip|*.xpi) unzip -o $SRC/$TARBALL ;; *.xz) unxz -c $SRC/$TARBALL | tar xf - || tar xf $SRC/$TARBALL 2>/dev/null;; + *.7z) 7zr x $SRC/$TARBALL ;; *.Z) uncompress -c $SRC/$TARBALL | tar xf - ;; *.rpm) rpm2cpio $SRC/$TARBALL | cpio -idm --quiet ;; *.run) /bin/sh $SRC/$TARBALL $RUN_OPTS ;; @@ -1478,7 +1479,8 @@ _ "cook: \$pkg doesn't cook or is not included in: \$ARCH" [ "$CROSS_BUGS" ] && _ "bugs: \$CROSS_BUGS" _ "Cook skip: \$pkg doesn't cook or is not included in: \$ARCH" | log - newline && exit 1 + sed -i /^${pkg}$/d $broken + newline && exit 0 fi # Skip blocked, 3 lines also for the Cooker.