Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21000
Modified Files:
Command.pm ChangeLog
Log Message:
Fixed Clef's fix to rm_f so not return failure for nonexistent files.
Made _expand only unmatched globs, undefs, blanks.
Index: Command.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/Command.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Command.pm 12 May 2004 15:11:19 -0000 1.15
+++ Command.pm 13 May 2004 06:33:14 -0000 1.16
@@ -211,6 +211,7 @@
my $nok = 0;
foreach my $file (@files) {
+ next unless lstat $file;
next if unlink($file);
chmod(0777,$file);
next if unlink($file);
@@ -345,7 +346,7 @@
=cut
sub _expand {
- return map { /[{*?]/ ? glob($_) : $_ } @_;
+ return grep { defined and length } map { ( defined && /[{*?]/ ) ? glob($_) :
$_ } @_;
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v
retrieving revision 1.621
retrieving revision 1.622
diff -u -d -r1.621 -r1.622
--- ChangeLog 12 May 2004 15:11:18 -0000 1.621
+++ ChangeLog 13 May 2004 06:33:22 -0000 1.622
@@ -1,3 +1,8 @@
+2004-05-13 Daniel Macks <[EMAIL PROTECTED]>
+
+ * Command.pm: Fixed rm_f to not return failure for non-existent files.
+ Made _expand omit globs that match nothing, undefs, and blanks.
+
2004-05-13 Peter O'Gorman <[EMAIL PROTECTED]>
* Command.pm: Fix Failed: can't symlink package due to perl's -e
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits