dsa-check-backuppg: also ignore *.old dirs
authorPeter Palfrader <peter@palfrader.org>
Thu, 8 Nov 2012 10:20:44 +0000 (11:20 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 8 Nov 2012 10:20:44 +0000 (11:20 +0100)
dsa-nagios-checks/checks/dsa-check-backuppg
dsa-nagios-checks/debian/changelog

index b7b05c8..0ce4d95 100755 (executable)
@@ -138,7 +138,7 @@ config = load_conf(options.conffile)
 
 os.chdir(config['rootdir'])
 for dir in os.listdir('.'):
-    if dir.startswith('.'):
+    if dir.startswith('.') or dir.endswith('.old'):
         note_info('IGNORED', dir)
         continue
 
index 43de6f3..e7203da 100644 (file)
@@ -15,7 +15,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low
   * dsa-check-packages: Ignore :$arch in package names of dpkg -l output,
     at least for the "primary" arch.  Does not really handle multi-arch
     packages, but it makes things work again for now.
-  * dsa-check-backuppg: Ignore .dotfiles in rootdir.
+  * dsa-check-backuppg: Ignore .dotfiles and *.old in rootdir.
 
   [ Stephen Gran ]
   * dsa-check-udldap-freshness: check new last_update.trace if it