index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-22 23:33:31 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-22 23:33:31 +0200 |
commit | 0d87c7936d80abbc271bbd2ef813136ccdf03736 (patch) | |
tree | c3b0b18da475a2cf82fb185b02cf121d115180bd | |
parent | 0e13adff76c5ab655df3b9fb0dcd28b4df5083f5 (diff) |
-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 < \ |