From 25da9bfd6828868cf0d300bc45cbdff069d751c0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Jun 2017 13:12:57 +0200 Subject: bin/return-assignment: removing of old package versions encapulated in external function, now --- bin/return-assignment | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bin/return-assignment') 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 ) -- cgit v1.2.3-70-g09d2