summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-21 02:49:31 +0100
committerNWT Administrator <nwt-admin@minobo.das-netzwerkteam.de>2011-12-21 02:49:31 +0100
commitd409c118b3c69f94a720029dc9df78c749d2f818 (patch)
tree71235d725fdb9434c75587831b4c8ab40b103ad8 /bin
parent17f11aac0ed5a9627cd2a3982baf6de1dc9494e9 (diff)
downloadbuildscripts-d409c118b3c69f94a720029dc9df78c749d2f818.tar.gz
buildscripts-d409c118b3c69f94a720029dc9df78c749d2f818.tar.bz2
buildscripts-d409c118b3c69f94a720029dc9df78c749d2f818.zip
fix while loop + dupload
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-package5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/build-package b/bin/build-package
index 0d3f007..7d7977f 100755
--- a/bin/build-package
+++ b/bin/build-package
@@ -240,7 +240,6 @@ build_packages() {
upload_packages() {
# dupload the new packages to the reprepro repository
- cd "$PKGDIST"
cat "$PROJECT_DIR/BUILDS_FOR" | egrep -v '(^$|^#.*$)' | while read line; do
l_DIST=$(echo ${line/: /:} | cut -d":" -f1 | tr [:upper:] [:lower:])
l_CODENAMES=${CODENAMES:-$(echo ${line/: /:} | cut -d":" -f2- | tr [:upper:] [:lower:])}
@@ -254,13 +253,13 @@ upload_packages() {
for l_ARCH in amd64 i386; do
cd "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH"
test -f ./dupload.conf || ln -s ~/.dupload.conf.$PREFIX ./dupload.conf
- ls $PROJECT_*.changes &>/dev/null && dupload -c --to $PREFIX-$l_DIST-$l_CODENAME $PROJECT_*.changes
+ ls $PROJECT_*.changes &>/dev/null && dupload -c --to $PREFIX-$l_DIST-$l_CODENAME $PROJECT_*.changes 0<&-
done
fi
for l_EXTRA_ARCH in $EXTRA_ARCHS; do
cd "$PKGDIST/$l_DIST/$l_CODENAME/$l_EXTRA_ARCH"
test -f ./dupload.conf || ln -s ~/.dupload.conf.$PREFIX ./dupload.conf
- ls $PROJECT_*.changes &>/dev/null && dupload -c --to $PREFIX-$l_DIST-$l_CODENAME $PROJECT_*.changes
+ ls $PROJECT_*.changes &>/dev/null && dupload -c --to $PREFIX-$l_DIST-$l_CODENAME $PROJECT_*.changes 0<&-
done
done
done