[Piuparts-commits] [piuparts] 02/07: piuparts.py: ignore multiarch definition in_default_debian_mirrors() (Closes: #711370)
Holger Levsen
holger at moszumanska.debian.org
Mon Feb 17 23:15:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 1749e9ec2c8bd7ff7dfb516a4dc6ae2c4cf3ea1e
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Feb 17 22:55:55 2014 +0100
piuparts.py: ignore multiarch definition in_default_debian_mirrors() (Closes: #711370)
---
piuparts.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/piuparts.py b/piuparts.py
index d212093..524023d 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -2478,6 +2478,7 @@ def find_default_debian_mirrors():
try:
f = file("/etc/apt/sources.list", "r")
for line in f:
+ line = re.sub('\[arch=.*\]', '', line)
parts = line.split()
if len(parts) > 2 and parts[0] == "deb":
mirrors.append((parts[1], parts[3:]))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list