index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-12-27 18:15:48 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-04 11:15:16 +1000 |
commit | 984492b92f1b35534adddc24c2439fcdcb9885af (patch) | |
tree | e3bbfa066e12768c6a78acb0903b3804a6085612 | |
parent | 4778f1318853ac9fc1f838d836dbe017fb6cbddc (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 1c7fb2f6..21a5ea8e 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -159,8 +159,8 @@ db_write_delta() { md5sum=${md5sum%% *} csize=$(wc -c "$deltafile" | cut -d' ' -f1) - oldfile=$(xdelta3 printhdr "$deltafile" | grep "XDELTA filename (source)" | sed 's/.*: *//') - newfile=$(xdelta3 printhdr "$deltafile" | grep "XDELTA filename (output)" | sed 's/.*: *//') + oldfile=$(xdelta3 printhdr "$deltafile" | sed -n 's/XDELTA filename (source):\s\+\(\.*\)/\1/p') + newfile=$(xdelta3 printhdr "$deltafile" | sed -n 's/XDELTA filename (output):\s\+\(\.*\)/\1/p') if grep -q "$oldfile.*$newfile" "$deltas"; then sed -i.backup "/$oldfile.*$newfile/d" "$deltas" && rm -f "$deltas.backup" |