Use --delete-after instead of --delete.
[rsync/rsync.git] / packaging / nightly-rsync
index f8da0b3..e54424e 100755 (executable)
@@ -51,8 +51,11 @@ if ($make_tar) {
                push(@files, $1);
                $dir = $1 . '/';
            }
-       } elsif (/^File: (.*?)\s+Status: / && $1 ne '.cvsignore') {
+       } elsif (/^File: (.*?)\s+Status: (.*)/ && $1 ne '.cvsignore') {
            push(@files, $dir . $1);
+           if ($2 ne 'Up-to-date') {
+               print "*** Not up-to-date: $dir$1\n";
+           }
        }
     }
     close CVS;
@@ -95,7 +98,7 @@ system 'ls -ltr';
 
 if ($upload) {
     $ENV{RSYNC_PARTIAL_DIR} = ''; # The rsync on samba.org is OLD.
-    system "rsync -aviHP --delete . samba.org:/home/ftp/pub/rsync/nightly";
+    system "rsync -aviHP --delete-after . samba.org:/home/ftp/pub/rsync/nightly";
 }
 
 exit;