Fix 'Use of uninitialized value' error when processing modified ebuilds
authorfuzzyray <fuzzyray@gentoo.org>
Mon, 16 Feb 2009 20:07:03 +0000 (20:07 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Mon, 16 Feb 2009 20:07:03 +0000 (20:07 -0000)
svn path=/; revision=546

trunk/src/echangelog/echangelog

index a1494e2b016d42df48a3cd894db0220fd57f7b0e..524b01c1a740c43bc92296638611fb41c45d76e3 100755 (executable)
@@ -319,8 +319,8 @@ if (@ebuilds) {
        # git format: diff --git a/app-doc/repodoc/metadata.xml b/app-doc/repodoc/metadata.xml
        elsif (/$vcs{$vcs}{regex}/) {
                my $f;
-               if ($vcs eq "git") {
                ($f) = ($1);
+               if ($vcs eq "git") {
                my $version = ($2);
                        while (<C>) {
                        last if /^deleted file mode|^index/;
@@ -329,8 +329,6 @@ if (@ebuilds) {
                        last;
                                }
                }
-               } else { 
-                       ($f) = ($2);
                }
 
             # check if more than just copyright date changed.