SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
[PATCH] Exit with status 0 on --check-destination-dir if no
Author Message
Post [PATCH] Exit with status 0 on --check-destination-dir if no 
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
< at > < at > -857,7 +857,7 < at > < at >
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)

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB