aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch')
-rw-r--r--main/abuild/0001-buildrepo-fix-purging-of-old-packages.patch25
1 files changed, 25 insertions, 0 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 0000000000..d12fafb589
--- /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
+