index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-01-13 09:33:01 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-13 23:43:58 -0600 |
commit | 665528d7bac99228849d1162f78c0817bc619eee (patch) | |
tree | 82fef7a68cee339ac6340928ffbd9d43d80cbacc | |
parent | 5615b716887960260016646c2d0f812806abe2ec (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 14 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 65a63d85..87c7834f 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -302,13 +302,15 @@ db_write_entry() fi # create a delta file - if [ -n "$oldfilename" -a -f "$oldfile" ]; then - delta=$(pkgdelta -q $oldfile $1) - if [ -f "$delta" ]; then - db_write_delta $delta + if [ -n "$oldfilename" ]; then + if [ -f "$oldfile" ]; then + delta=$(pkgdelta -q $oldfile $1) + if [ -f "$delta" ]; then + db_write_delta $delta + fi + else + warning "$(gettext "Old package file not found: %s")" "$oldfilename" fi - else - warning "$(gettext "Old package file not found : %s")" "$oldfilename" fi return 0 |