Package: devscripts
Version: 2.10.67
Severity: important
User: devscri...@packages.debian.org
Usertags: dget
Tags: patch

$ apt-cache policy apt
apt:
  Installed: 0.8.0
  Candidate: 0.8.0
  Version table:
 *** 0.8.0 0
        990 http://ftp.pl.debian.org/debian/ sid/main i386 Packages
        100 /var/lib/dpkg/status

$ cat /etc/apt/sources.list.d/*
deb http://ftp.pl.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.pl.debian.org/debian/ sid main non-free contrib
deb http://ftp.pl.debian.org/debian/ experimental main non-free contrib
deb-src http://ftp.pl.debian.org/debian/ experimental main non-free contrib

$ dget apt
no repository found in /etc/apt/sources.list or sources.list.d at /usr/bin/dget 
line 335.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev                      1.15.8.4   Debian package development tools
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii perl 5.10.1-14 Larry Wall's Practical Extraction
--
Jakub Wilk
diff --git a/scripts/dget.pl b/scripts/dget.pl
index b7ef84e..0e15763 100755
--- a/scripts/dget.pl
+++ b/scripts/dget.pl
@@ -312,7 +312,7 @@ sub apt_get {
     if (-f "/etc/apt/sources.list") {
 	$apt = new IO::File("/etc/apt/sources.list") or die "/etc/apt/sources.list: $!";
 	while (<$apt>) {
-	    if (/^\s*deb\s*($host_re\S+)/) {
+	    if (/^\s*deb\s*($host_re\S*)/) {
 		push @repositories, $1;
 	    }
 	}
@@ -325,7 +325,7 @@ sub apt_get {
 	$_ = "/etc/apt/sources.list.d/$_";
 	$apt = new IO::File("$_") or die "$_: $!";
 	while (<$apt>) {
-	    if (/^\s*deb\s*($host_re\S+)/) {
+	    if (/^\s*deb\s*($host_re\S*)/) {
 		push @repositories, $1;
 	    }
 	}

Attachment: signature.asc
Description: Digital signature

Reply via email to