summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-03-12 19:26:11 +0100
committerJulian Andres Klode <jak@debian.org>2010-03-12 19:26:11 +0100
commit4652428c6c964991ca1384c1a7f7d0e2a7028356 (patch)
treeef2f911fd405470a6d30089c347ae4f36f3725ec /tests
parent7087b6bebc930dfee0f717d46329e3704cc871be (diff)
downloadpython-apt-4652428c6c964991ca1384c1a7f7d0e2a7028356.tar.gz
Revert 0.7.93.3 and just set APT::Architecture to i386 for
test_aptsources; fixes FTBFS on powerpc.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_aptsources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 0f7f078b..767f5244 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -14,6 +14,8 @@ class TestAptSources(unittest.TestCase):
def setUp(self):
apt_pkg.init_config()
apt_pkg.init_system()
+ if apt_pkg.config["APT::Architecture"] not in ('i386', 'amd64'):
+ apt_pkg.config.set("APT::Architecture", "i386")
apt_pkg.config.set("Dir::Etc", os.getcwd())
apt_pkg.config.set("Dir::Etc::sourceparts", "/xxx")
if os.path.exists("../build/data/templates"):