rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] [PATCH] Exit with status 0 on --check-destination-d


From: Charles Duffy
Subject: [rdiff-backup-users] [PATCH] Exit with status 0 on --check-destination-dir if no check is needed
Date: Tue, 31 Jan 2006 13:44:30 -0600
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

See attached patch. I believe this makes more sense than exiting with status 1 (indicating an error), as simply having nothing to do is a harmless, valid state.
--- rdiff-backup-1.0.4/rdiff_backup/Main.py.orig        2006-01-31 
13:36:55.505083666 -0600
+++ rdiff-backup-1.0.4/rdiff_backup/Main.py     2006-01-31 13:36:57.740048887 
-0600
@@ -857,7 +857,7 @@
                Log.FatalError("No destination dir found at %s" % 
(dest_rp.path,))
        elif need_check == 0:
                Log.FatalError("Destination dir %s does not need checking" %
-                                          (dest_rp.path,))
+                                          (dest_rp.path,), errlevel = 0)
        init_user_group_mapping(dest_rp.conn)
        dest_rp.conn.regress.Regress(dest_rp)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]