packages: relup.sh - validate spec via rpm macro expand, can now checkout p...
glen
glen at pld-linux.org
Mon Feb 14 09:03:56 CET 2011
Author: glen Date: Mon Feb 14 08:03:56 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- validate spec via rpm macro expand, can now checkout package: ./relup.sh -ui <PKG> works
---- Files affected:
packages:
relup.sh (1.26 -> 1.27)
---- Diffs:
================================================================
Index: packages/relup.sh
diff -u packages/relup.sh:1.26 packages/relup.sh:1.27
--- packages/relup.sh:1.26 Mon Nov 15 20:04:08 2010
+++ packages/relup.sh Mon Feb 14 09:03:51 2011
@@ -92,10 +92,13 @@
done
tmpd=$(mktemp -d "${TMPDIR:-/tmp}/relXXXXXX")
-for spec in "$@"; do
- spec=${spec%.spec}.spec
+topdir=$(rpm -E '%{_topdir}')
+cd "$topdir"
+for pkg in "$@"; do
+ spec=$(rpm -D "name ${pkg%.spec}" -E '%{_specdir}/%{name}.spec')
+ spec=${spec#$topdir/}
if [ "$update" = "1" ]; then
- cvs up "$spec"
+ ./builder -g -ns "$spec"
fi
rel=$(get_release "$spec")
if [ "$inc" = 1 ]; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/relup.sh?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list