summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-08 21:37:19 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-08 21:37:19 +0100
commit776281a8b6cab3e9cdd603fec120d1987a3dfd75 (patch)
tree66a8ca889864a7ee342a0aa03bf31a611fb63e94 /bin
parent9bc75e3b2a88e1b5dcb296e877c8ce536a7fcdd5 (diff)
downloadjenkins.debian.net-776281a8b6cab3e9cdd603fec120d1987a3dfd75.tar.xz
fixup: filter out arch and version
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index 9cba0cab..8576a316 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -32,7 +32,7 @@ chdist --arch=$ARCH apt-get $DISTNAME update
# helper functions
convert_into_source_packages_only() {
TMP2=$(mktemp)
- for PKG in $(cat $TMPFILE | sed "s#([^)]*)##g; s#,##g" |sort -u ) ; do
+ for PKG in $(cat $TMPFILE | sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g" |sort -u ) ; do
SRC=""
if [ ! -z "$PKG" ] ; then
SRC=$(grep-dctrl -X -n -FPackage -sSource $PKG $PACKAGES || true )
@@ -134,7 +134,7 @@ fi
rm -f $TMPFILE
if [ -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[5]}.pkgset) ] ; then
for PKG in $(cat $TPATH/${META_PKGSET[4]}.pkgset) ; do
- grep-dctrl -sBuild-Depends -n -X -FPackage $PKG $SOURCES | sed "s#([^)]*)##g; s#,##g" >> $TMPFILE
+ grep-dctrl -sBuild-Depends -n -X -FPackage $PKG $SOURCES | sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g" >> $TMPFILE
done
convert_into_source_packages_only
update_if_similar ${META_PKGSET[5]}.pkgset
@@ -152,7 +152,7 @@ fi
rm -f $TMPFILE
if [ -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[7]}.pkgset) ] ; then
for PKG in $(cat $TPATH/${META_PKGSET[6]}.pkgset) ; do
- grep-dctrl -sBuild-Depends -n -X -FPackage $PKG $SOURCES | sed "s#([^)]*)##g; s#,##g" >> $TMPFILE
+ grep-dctrl -sBuild-Depends -n -X -FPackage $PKG $SOURCES | sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g" >> $TMPFILE
done
convert_into_source_packages_only
update_if_similar ${META_PKGSET[7]}.pkgset