summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-13 11:30:06 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-13 11:30:06 +0200
commit2f7415d9e0383dc9f86defdb9e41e397b0ae4cde (patch)
tree99029d963c29ee60e62d888d6ee2d977271e4b9e
parent480544ebe82512afc536a7aa50bb0449446f6a87 (diff)
removed useless statements
-rwxr-xr-xdb-update10
1 files changed, 1 insertions, 9 deletions
diff --git a/db-update b/db-update
index e4bf25d..3372dfb 100755
--- a/db-update
+++ b/db-update
@@ -39,15 +39,11 @@ for current_arch in ${ARCHES[@]} any; do
done
# Process architecture-independent packages first.
-if [ -d "$stagedir" ]; then
- ANYPKGS="$(getpkgfiles $stagedir/*-any$PKGEXT 2>/dev/null)"
-fi
+ANYPKGS="$(getpkgfiles $stagedir/*-any$PKGEXT 2>/dev/null)"
cd "$WORKDIR"
if [ -n "$ANYPKGS" ]; then
- pkgtotal=$(echo "$ANYPKGS" | wc -w)
-
/usr/bin/svn checkout -q -N $SVNREPO checkout >/dev/null
cd checkout
to_add_any=""
@@ -76,13 +72,11 @@ if [ -n "$ANYPKGS" ]; then
fi
for current_arch in ${ARCHES[@]}; do
-
ftppath="$FTP_BASE/$reponame/os/$current_arch"
ftppath_any="$FTP_BASE/$reponame/os/any"
poolpath="$FTP_BASE/$(get_pkgpool_for_host)"
# The following is used to create relative symlinks
poolrel="../../../$(get_pkgpool_for_host)"
-
svnrepo="$reponame-$current_arch"
repo_lock $reponame $current_arch || continue
@@ -106,8 +100,6 @@ for current_arch in ${ARCHES[@]}; do
/bin/cp "$ftppath/$reponame$DBEXT" build/$reponame-$current_arch$DBEXT
fi
- pkgtotal=$(echo "$ADDPKGS $ANYPKGS" | wc -w)
-
cd "$WORKDIR"
/usr/bin/svn checkout -N $SVNREPO checkout >/dev/null
cd checkout