Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/paccache.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in
index eba315c7..71aee237 100644
--- a/contrib/paccache.sh.in
+++ b/contrib/paccache.sh.in
@@ -56,9 +56,14 @@ pkgfilter() {
# script after the block of awk.
awk -v keep="$1" -v scanarch="$2" '
+ function basename(str) {
+ sub(".*/", "", str);
+ return str;
+ }
+
function parse_filename(filename, parts, count, i, pkgname, arch) {
- count = split(filename, parts, "-")
+ count = split(basename(filename), parts, "-")
i = 1
pkgname = parts[i++]