diff options
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 /bin/db-update | |
parent | 0e13adff76c5ab655df3b9fb0dcd28b4df5083f5 (diff) | |
download | builder-0d87c7936d80abbc271bbd2ef813136ccdf03736.tar.xz |
bin/db-update: bugfix
Diffstat (limited to 'bin/db-update')
-rwxr-xr-x | bin/db-update | 4 |
1 files changed, 2 insertions, 2 deletions
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 < \ |