dsa-check-backuppg: Ignore .dotfiles in rootdir
authorPeter Palfrader <peter@palfrader.org>
Sat, 25 Aug 2012 16:18:16 +0000 (18:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 25 Aug 2012 16:18:16 +0000 (18:18 +0200)
dsa-nagios-checks/checks/dsa-check-backuppg
dsa-nagios-checks/debian/changelog

index ccf9e3d..b7b05c8 100755 (executable)
@@ -138,6 +138,10 @@ config = load_conf(options.conffile)
 
 os.chdir(config['rootdir'])
 for dir in os.listdir('.'):
+    if dir.startswith('.'):
+        note_info('IGNORED', dir)
+        continue
+
     if not os.path.isdir(dir):
         if min(os.path.getmtime(dir), os.path.getctime(dir)) + 3600*4 > time.time():
             note_info('IGNORED', dir)
index 7adfa64..74505bd 100644 (file)
@@ -15,6 +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.
 
   [ Stephen Gran ]
   * dsa-check-udldap-freshness: check new last_update.trace if it
@@ -24,7 +25,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low
   [ Uli Martens ]
   * dsa-check-soas: Add --no-soa-ns flag.
 
- -- Stephen Gran <sgran@debian.org>  Sun, 15 Jul 2012 17:32:57 +0100
+ -- Peter Palfrader <weasel@debian.org>  Sat, 25 Aug 2012 18:17:55 +0200
 
 dsa-nagios-checks (92.1) unstable; urgency=low