Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-14 13:12:57 +0200
committerErich Eckner <git@eckner.net>2017-06-14 13:12:57 +0200
commit25da9bfd6828868cf0d300bc45cbdff069d751c0 (patch)
tree315940307f71a9b4c6725ac0a7ec1e3c379f344d /bin/return-assignment
parentef56ac4ec9279867ac17156849bc371802e054d7 (diff)
bin/return-assignment: removing of old package versions encapulated in external function, now
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 6ea036a..ea2f09b 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -146,11 +146,7 @@ mv *.pkg.tar.xz{,.sig} "${master_mirror_directory}/i686/${destination}/"
# remove old versions of same packages
for package in "${packages[@]}"; do
- pkgname="${package%-*-*-*.pkg.tar.xz}"
- ls | \
- grep "^${pkgname//./\\.}\(-[^-]\+\)\{3\}\.pkg\.tar\.xz\(\.sig\)\?\$" | \
- grep -v "^${package//./\\.}\(\.sig\)\?\$" | \
- xargs -rn1 rm
+ remove_old_package_versions "${package}"
done
)