Package: debmirror
Version: 1:2.4
Severity: minor
Tags: patch

        Hey

 When debmirroring debian.informatik.uni-erlangen.de/debimedia dists, I
 get this warning:
    Use of uninitialized value $origin in string eq at
    /usr/bin/debmirror line 1856.

 The Release files don't have any Origin field.

 This change fixes it for me:
--- debmirror   2010-01-17 10:30:57.755359406 +0100
+++ /usr/bin/debmirror  2010-01-17 10:32:01.194109289 +0100
@@ -1845,15 +1845,13 @@
     ($origin) = m/^Origin:\s+(.*)/im;
     ($codename) = m/^Codename:\s+(.*)/im;
     ($suite) = m/^Suite:\s+(.*)/im;
-  } elsif ($ignore_release) {
-    $origin = "none";
   }
 
   # Allow for for example "<codename|suite>/updates"; split into the
   # raw dist (codename or suite) and the subdirectory.
   my ($dist_raw, $dist_sdir) = split_dist($dist);
 
-  if ($origin eq "none") {
+  if (not defined $origin) {
     $codename = $dist_raw;
   } elsif ($origin eq "Ubuntu") {
     if ($suite) {

    Thanks!
-- 
Loïc Minier



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to