index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/db-update | 4 |
diff --git a/bin/db-update b/bin/db-update index 01db113..a67a3fc 100755 --- a/bin/db-update +++ b/bin/db-update @@ -272,12 +272,12 @@ move_packages() { else # remove old state files of $package with ending $to_ending ls "${work_dir}/package-states" | \ - grep "^$(str_to_regex "${package}")\(\.[^.]\+\)\{3\}\.${to_ending}\$" | \ + grep "^$(str_to_regex "${package%.*.*.*}")\(\.[^.]\+\)\{3\}\.${to_ending}\$" | \ sed "s|^|${work_dir}/package-states/|" | \ xargs -rn1 ${dummynator} rm ${dummynator} mv \ "${work_dir}/package-states/${package}.${from_ending}" \ - "${work_dir}/package-states/${package}.${to_ending}" + "${work_dir}/package-states/${package}.${to_ending}" fi done < \ |