Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25623

Modified Files:
        PkgVersion.pm ChangeLog 
Log Message:
Block SIGINT during exiting-buildlock pkg lookup.


Index: PkgVersion.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/PkgVersion.pm,v
retrieving revision 1.377
retrieving revision 1.378
diff -u -d -r1.377 -r1.378
--- PkgVersion.pm       11 Apr 2005 22:30:52 -0000      1.377
+++ PkgVersion.pm       15 Apr 2005 14:30:41 -0000      1.378
@@ -3201,7 +3201,13 @@
        # remove lockpkg (== clear lock for building $self)
        print "Removing build lock...\n";
 
-       my $old_lock = `dpkg-query -W $lockpkg 2>/dev/null`;
+
+       
+       my $old_lock;
+       {
+               local $SIG{INT} = 'IGNORE';
+               $old_lock = `dpkg-query -W $lockpkg 2>/dev/null`;
+       }
        chomp $old_lock;
        if ($old_lock eq "$lockpkg\t") {
                &print_breaking("WARNING: The lock was removed by some other 
process.");

Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.930
retrieving revision 1.931
diff -u -d -r1.930 -r1.931
--- ChangeLog   11 Apr 2005 22:30:52 -0000      1.930
+++ ChangeLog   15 Apr 2005 14:30:43 -0000      1.931
@@ -1,10 +1,10 @@
-2005-04-11  Dave Morrison  <[EMAIL PROTECTED]>
+2005-04-15  Daniel Macks  <[EMAIL PROTECTED]>
 
-       * PkgVersion.pm: add a default for CXXFLAGS for recent distributions
+       * PkgVersion.pm: No interruption of buildlock pkg lookup
 
-2005-04-08  Daniel Macks  <[EMAIL PROTECTED]>
+2005-04-11  Dave Morrison  <[EMAIL PROTECTED]>
 
-       * Engine.pm: Optimize 'fink list' with globs or multiple args.
+       * PkgVersion.pm: add a default for CXXFLAGS for recent distributions
 
 2005-04-05  Daniel Macks  <[EMAIL PROTECTED]>
 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to