Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed bac6151

Made _is_older more robust and fixed some warnings.

  • Participants
  • Parent commits 0cde946

Comments (0)

Files changed (2)

File modules/App-XML-DocBook-Docmake/Changes

         - Fixed --make with xhtml - previously it didn't build the
         xhtml at all.
+        - Got rid of some warnings in the --make flag with the is_older
+        flag. Made _is_older more robust. 
 
 0.0200  Sun Jun 28 09:46:15 IDT 2009
         - Removed the "all rights reserved" copyright language - it's not

File modules/App-XML-DocBook-Docmake/lib/App/XML/DocBook/Docmake.pm

     my @stat1 = stat($file1);
     my @stat2 = stat($file2);
 
-    return ($stat1[9] <= $stat2[9]);
+    if (! @stat2)
+    {
+        die "Input file '$file1' does not exist.";
+    }
+    elsif (! @stat1)
+    {
+        return 1;
+    }
+    else
+    {
+        return ($stat1[9] <= $stat2[9]);
+    }
 }
 
 sub _should_update_output