From abde7027ec7440ebdfae67f4e1fd4a0ecee2e006 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sat, 24 Jan 2009 16:35:38 +0000 Subject: [PATCH] Support Fink version of dpkg The Fink version doesn't support the -f flag, but only the --showformat flag. --- zeroinstall/injector/distro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/injector/distro.py b/zeroinstall/injector/distro.py index f6d0a3e..2fb5924 100644 --- a/zeroinstall/injector/distro.py +++ b/zeroinstall/injector/distro.py @@ -91,7 +91,7 @@ class DebianDistribution(Distribution): def generate_cache(self): cache = [] - for line in os.popen("dpkg-query -W -f='${Package}\t${Version}\t${Architecture}\n'"): + for line in os.popen("dpkg-query -W --showformat='${Package}\t${Version}\t${Architecture}\n'"): package, version, debarch = line.split('\t', 2) if ':' in version: # Debian's 'epoch' system -- 2.11.4.GIT