autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A typo in find_file comment


From: Ralf Wildenhues
Subject: Re: A typo in find_file comment
Date: Mon, 17 Apr 2006 14:17:22 +0200
User-agent: Mutt/1.5.9i

Hi Stepan,

* Stepan Kasal wrote on Fri, Apr 14, 2006 at 09:33:30AM CEST:
> Hello,
>   I fixed a typo in Autom4te/FileUtils.pm, see the attached patch.
> I'll re-submit this to Automake.

Since Autoconf isn't the primary source for this, it's better to just
submit to Automake, and then sync when that is updated.  Otherwise the
next sync will silently lose your change.

After committing
http://lists.gnu.org/archive/html/automake-patches/2006-04/msg00014.html
I have sync'ed lib/Autom4te from Automake.

Cheers,
Ralf

> 2006-04-14  Stepan Kasal  <address@hidden>
> 
>       * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
>       description.

        * lib/Autom4te/FileUtils.pm: Sync from Automake.

Index: lib/Autom4te/FileUtils.pm
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/Autom4te/FileUtils.pm,v
retrieving revision 1.10
diff -u -r1.10 FileUtils.pm
--- lib/Autom4te/FileUtils.pm   14 Apr 2006 07:05:36 -0000      1.10
+++ lib/Autom4te/FileUtils.pm   17 Apr 2006 12:16:05 -0000
@@ -76,22 +76,17 @@
   return File::Spec->canonpath ($file_name)
     if -e $file_name;
 
-  if (File::Spec->file_name_is_absolute ($file_name))
+  if (!File::Spec->file_name_is_absolute ($file_name))
     {
-      fatal "$file_name: no such file or directory"
-       unless $optional;
-      return undef;
-    }
-
-  foreach my $path (@include)
-    {
-      return File::Spec->canonpath (File::Spec->catfile ($path, $file_name))
-       if -e File::Spec->catfile ($path, $file_name)
+      foreach my $path (@include)
+       {
+         return File::Spec->canonpath (File::Spec->catfile ($path, $file_name))
+           if -e File::Spec->catfile ($path, $file_name)
+       }
     }
 
   fatal "$file_name: no such file or directory"
     unless $optional;
-
   return undef;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]