SPECS: builder - try to reject UTF8 on AC-branch
glen
glen at pld-linux.org
Tue Feb 13 11:05:01 CET 2007
Author: glen Date: Tue Feb 13 10:05:00 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- try to reject UTF8 on AC-branch
---- Files affected:
SPECS:
builder (1.475 -> 1.476)
---- Diffs:
================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.475 SPECS/builder:1.476
--- SPECS/builder:1.475 Tue Feb 6 20:10:26 2007
+++ SPECS/builder Tue Feb 13 11:04:55 2007
@@ -564,6 +564,10 @@
remove_build_requires
echo "Tree branch already exists (${2})."
exit 11 ;;
+ "err_acl_deny" )
+ remove_build_requires
+ echo "Error: conditions reject building this spec (${2})."
+ exit 12 ;;
esac
echo "Unknown error."
@@ -2088,7 +2092,17 @@
fi
fi
+ # ./builder -bs test.spec -r AC-branch -Tp auto-ac- -tt
if [ -n "$TEST_TAG" ]; then
+ # - do not allow utf8 encoded specs on AC-branch
+ if [ "$CVSTAG" = "AC-branch" ]; then
+ local t
+ t=$(grep '^Summary(.*\.UTF-8):' $SPECFILE)
+ if [ "$t" ]; then
+ Exit_error err_acl_deny "UTF-8 not allowed on AC-branch"
+ fi
+ fi
+
TAGVER=`make_tagver`
echo "Searching for tag $TAGVER..."
TAGREL=$(cvs status -v $SPECFILE | grep -E "^[[:space:]]*${TAGVER}[[[:space:]]" | sed -e 's#.*(revision: ##g' -e 's#).*##g')
@@ -2105,6 +2119,7 @@
Exit_error err_branch_exists "$TAG_STATUS"
fi
fi
+
fi
if [ -n "$NOSOURCE0" ] ; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/builder?r1=1.475&r2=1.476&f=u
More information about the pld-cvs-commit
mailing list