summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-admin12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 549d89176..6144fa341 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -214,6 +214,18 @@ def compare(new, old):
def do_compare(args):
'''run file comparison'''
+ if '-r' in args:
+ args.remove('-r')
+ (oldd, newd) = args
+ (old, new) = [os.listdir(spot) for spot in args]
+ for item in old:
+ print item
+ do_compare(oldd + '/' + item, newd + '/' + item)
+ old.remove(item)
+ new.remove(item)
+ if new:
+ print "new has extra entries", new
+ return
try:
(old, new) = args
except IndexError: