diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-11 11:51:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-17 12:55:51 +0000 |
commit | 1e3c5a742bf5142296174282ef1811b71acad683 (patch) | |
tree | 9f16dbe661798c97110a3248cce837a144bd2f2b | |
parent | 55af44f0267511f28f74362bbadef048606817e5 (diff) | |
download | abuild-1e3c5a742bf5142296174282ef1811b71acad683.tar.gz abuild-1e3c5a742bf5142296174282ef1811b71acad683.tar.bz2 abuild-1e3c5a742bf5142296174282ef1811b71acad683.tar.xz abuild-1e3c5a742bf5142296174282ef1811b71acad683.zip |
buildrepo: fix previous commit
-rwxr-xr-x | buildrepo.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildrepo.in b/buildrepo.in index 405e500..79954da 100755 --- a/buildrepo.in +++ b/buildrepo.in @@ -61,8 +61,8 @@ build() { pkgs=$(abuild listpkg) if all_exist $pkgs; then echo ">>> Copying " $pkgs - cp -p -l $pkgs "$repodir/$repo/$CARCH"/ 2>/dev/null \ - || cp -p $pkgs "$repodir/$repo/$CARCH"/ \ + cp -p -l $pkgs "$repodir/$repo/$arch"/ 2>/dev/null \ + || cp -p $pkgs "$repodir/$repo/$arch"/ \ || needbuild="$needbuild $i" else needbuild="$needbuild $i" @@ -81,7 +81,7 @@ build() { if [ -n "$dopurge" ]; then local tmp=$(mktemp /tmp/$program-XXXXXX) local purgefiles - cd "$repodir/$repo/$CARCH" || return 1 + cd "$repodir/$repo/$arch" || return 1 trap 'rm -f "$tmp"; exit 1' INT ( listpackages "$1") >$tmp purge=$(ls *.apk 2>/dev/null | grep -v -w -f $tmp) |