]> git.pld-linux.org Git - projects/cleanbuild.git/blobdiff - findunusedbr
addbr can tell it added nothing (already present, etc)
[projects/cleanbuild.git] / findunusedbr
index b3029068fa7b8d8e8c38cc5ae369ccf415102759..7a6359b01b34061cbfe4e2172c5314beed821d7e 100755 (executable)
@@ -41,6 +41,9 @@ sub clear_files
                         $f = $chroot.$_;
                }
 
+               # skip missing files, like "%_excludedocs 0" being active
+               next unless stat $f;
+
                # XXX: this truncates mtime to its low resolution value
                my $mtime = (stat $f)[9];
                warn "Mtime failed on $f" unless $mtime;
This page took 0.026584 seconds and 4 git commands to generate.