Author: ranger Date: Mon Feb 18 00:46:26 2008 New Revision: 1139 URL: http://svn.finkproject.org/websvn/listing.php?sc=1&rev=1139&repname=user%3a+ranger Log: don't be loud about the lock file if there is contention and we're doing the --only-update option
Modified: trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl Modified: trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl URL: http://svn.finkproject.org/websvn/diff.php?path=/trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl&rev=1139&repname=user%3a+ranger ============================================================================== --- trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl (original) +++ trunk/experimental/scripts/generate-distfiles-and-finkinfo-mirror.pl Mon Feb 18 00:46:26 2008 @@ -38,6 +38,10 @@ open (LOCKFILE, '>>' . $WORKDIR . '/mirror.lock') or die "could not open lockfile for append: $!"; if (not flock(LOCKFILE, LOCK_EX | LOCK_NB)) { + if (grep(/^--?o/, @ARGV)) + { + exit 0; + } my $msg = "Another process is already running.\n"; if (-f $LOGFILE && -r _) { $msg .= "End of existing logfile:\n"; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs