summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Admin/Compare.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Compare.py b/src/lib/Server/Admin/Compare.py
index 27e1478d1..e6b273176 100644
--- a/src/lib/Server/Admin/Compare.py
+++ b/src/lib/Server/Admin/Compare.py
@@ -124,7 +124,11 @@ class Compare(Bcfg2.Server.Admin.Mode):
args.remove('-r')
(oldd, newd) = args
(old, new) = [os.listdir(spot) for spot in args]
+ old_extra = []
for item in old:
+ if item not in new:
+ old_extra.append(item)
+ continue
print("File: %s" % item)
state = self.__call__([oldd + '/' + item, newd + '/' + item])
new.remove(item)
@@ -134,6 +138,8 @@ class Compare(Bcfg2.Server.Admin.Mode):
print("File %s is bad" % item)
if new:
print("%s has extra files: %s" % (newd, ', '.join(new)))
+ if old_extra:
+ print("%s has extra files: %s" % (oldd, ', '.join(old_extra)))
return
try:
(old, new) = args