SVN: toys/tools/cleanbuild/findunusedbr
glen
glen at pld-linux.org
Sun Aug 14 00:00:57 CEST 2011
Author: glen
Date: Sun Aug 14 00:00:56 2011
New Revision: 12306
Modified:
toys/tools/cleanbuild/findunusedbr
Log:
omit mtime errors on missing files
Modified: toys/tools/cleanbuild/findunusedbr
==============================================================================
--- toys/tools/cleanbuild/findunusedbr (original)
+++ toys/tools/cleanbuild/findunusedbr Sun Aug 14 00:00:56 2011
@@ -41,6 +41,9 @@
$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;
More information about the pld-cvs-commit
mailing list