blob: d12fafb589a1c71f2bac4532637cf761081d7bfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|