[SCM] Git repository for devscripts branch, master, updated. v2.12.3-4-g9d6fb35

James McCoy jamessan at debian.org
Mon Sep 17 02:37:20 UTC 2012


The following commit has been merged in the master branch:
commit 9b9df85a06c689bd979d7316811ff50c6eab1148
Author: Raphael Geissert <geissert at debian.org>
Date:   Fri Sep 14 13:34:51 2012 -0500

    dget: avoid an infinite loop when a .changes or .dsc file references itself
    
    The loop is usually broken when reaching resource exhaustion (when
    reaching RLIMIT_NOFILE, for instance.)
    
    Signed-off-by: Raphael Geissert <geissert at debian.org>
    Signed-off-by: James McCoy <jamessan at debian.org>

diff --git a/scripts/dget.pl b/scripts/dget.pl
index 1acb08e..af4d034 100755
--- a/scripts/dget.pl
+++ b/scripts/dget.pl
@@ -220,6 +220,8 @@ sub get_file {
 	return 0;
     }
 
+    $seen{$file} = 1;
+
     if ($file =~ /\.(?:changes|dsc)$/) {
 	parse_file($dir, $file);
     }
@@ -227,7 +229,6 @@ sub get_file {
 	$found_dsc = $file;
     }
 
-    $seen{$file} = 1;
     return 1;
 }
 

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list