summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/db-update b/bin/db-update
index d05f69f..74bab79 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -507,12 +507,9 @@ done
# packages which are done
-ls "${work_dir}/package-states" | \
- sed -n '
- /\.done$/{
- s|^\(.*\)\(\(\.[^.]\+\)\{3\}\)\.done$|\1 \1\2|
- p
- }
+find "${work_dir}/package-states" -maxdepth 1 -type f -name '*.done' -printf '%f\n' | \
+ sed '
+ s|^\(.*\)\(\(\.[^.]\+\)\{3\}\)\.done$|\1 \1\2|
' | \
sort > \
"${tmp_dir}/done-packages"