diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-07 14:41:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-07 14:41:23 +0000 |
commit | 77d16271ad82d29c0d3e5c8e2ba504feea521f7c (patch) | |
tree | 4f95e1ebfda4bcb84e734481a337e317f67547e8 /main/abuild | |
parent | 8b84c94ae2b753ad3fb3792e766afa4370c265b9 (diff) | |
download | aports-77d16271ad82d29c0d3e5c8e2ba504feea521f7c.tar.bz2 aports-77d16271ad82d29c0d3e5c8e2ba504feea521f7c.tar.xz |
main/abuild: fix buildrepo to clean old packages
Diffstat (limited to 'main/abuild')
-rw-r--r-- | main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch | 25 | ||||
-rw-r--r-- | main/abuild/APKBUILD | 6 |
2 files changed, 29 insertions, 2 deletions
diff --git a/main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch b/main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch new file mode 100644 index 000000000..d12fafb58 --- /dev/null +++ b/main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch @@ -0,0 +1,25 @@ +From 54ca2cb82aafc43e77dff1bacb80ed25a55f6ae7 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 7 Apr 2011 14:34:51 +0000 +Subject: [PATCH] buildrepo: fix purging of old packages + +--- + buildrepo.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/buildrepo.in b/buildrepo.in +index 5a80b0b..405e500 100755 +--- a/buildrepo.in ++++ b/buildrepo.in +@@ -81,7 +81,7 @@ build() { + if [ -n "$dopurge" ]; then + local tmp=$(mktemp /tmp/$program-XXXXXX) + local purgefiles +- cd "$repodir/$1" || return 1 ++ cd "$repodir/$repo/$CARCH" || return 1 + trap 'rm -f "$tmp"; exit 1' INT + ( listpackages "$1") >$tmp + purge=$(ls *.apk 2>/dev/null | grep -v -w -f $tmp) +-- +1.7.4.4 + diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD index d55ab8e72..1848c6890 100644 --- a/main/abuild/APKBUILD +++ b/main/abuild/APKBUILD @@ -2,9 +2,10 @@ pkgdesc="Script to build Alpine Packages" pkgname=abuild pkgver=2.9.1 -pkgrel=0 +pkgrel=1 url=http://git.alpinelinux.org/cgit/abuild/ source="http://git.alpinelinux.org/cgit/abuild.git/snapshot/abuild-$pkgver.tar.bz2 + 0001-buildrepo-fix-purging-of-old-packages.patch " depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1" makedepends="openssl-dev pkgconfig" @@ -37,4 +38,5 @@ package() { install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles } -md5sums="e6c418567cd95eacc1278850dc88ee00 abuild-2.9.1.tar.bz2" +md5sums="e6c418567cd95eacc1278850dc88ee00 abuild-2.9.1.tar.bz2 +951500370d6b06195aac633699aa88f5 0001-buildrepo-fix-purging-of-old-packages.patch" |