Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
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, 5 insertions, 4 deletions
diff --git a/bin/db-update b/bin/db-update
index eaf0337..01db113 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -184,12 +184,13 @@ move_packages() {
# add and remove the packages locally
if grep -qxF "${repo}" "${tmp_dir}/"*".from_repo"; then
+
${dummynator} repo-remove -q \
"${tmp_dir}/${repo}/${repo}.db.tar.gz" \
$(
- grep -xF "${repo}" "${tmp_dir}/"*".from_repo" | \
+ grep -lxF "${repo}" "${tmp_dir}/"*".from_repo" | \
sed '
- s|\.from_repo:[^:]\+$|.parts_names|
+ s|\.from_repo$|.parts_names|
' | \
xargs -rn1 cat
)
@@ -199,9 +200,9 @@ move_packages() {
${dummynator} repo-add -q \
"${tmp_dir}/${repo}/${repo}.db.tar.gz" \
$(
- grep -xF "${repo}" "${tmp_dir}/"*".to_repo" | \
+ grep -lxF "${repo}" "${tmp_dir}/"*".to_repo" | \
sed '
- s|\.to_repo:[^:]\+$||
+ s|\.to_repo$||
' | \
while read -r package; do
sed \