diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/repo-add.sh.in | 14 |
1 files changed, 8 insertions, 6 deletions
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 |