On Thu, Dec 23, 2010 at 05:33:41PM -0800, Steve Langasek wrote: > --- > src/query.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-)
Sorry, thought I was working on an up-to-date branch and apparently wasn't. (Also apparently am an expert in shooting myself in the foot with git format-email, to judge by the duplicate traffic.) Attached is an updated patch that applies against current dpkg. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ [email protected] [email protected]
>From 89d92f0503aa39d76f5bf28c3ba1c10ef0901c4b Mon Sep 17 00:00:00 2001 From: Steve Langasek <[email protected]> Date: Mon, 31 Aug 2009 18:10:46 -0700 Subject: [PATCH 1/2] Output pkg:arch in dpkg -S output for non-native packages To: [email protected] --- src/querycmd.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/querycmd.c b/src/querycmd.c index c03eb18..dbeed30 100644 --- a/src/querycmd.c +++ b/src/querycmd.c @@ -246,6 +246,12 @@ static int searchoutput(struct filenamenode *namenode) { if (found) fputs(", ", stdout); fputs(pkg_owner->name, stdout); + if (strcmp(pkg_owner->installed.architecture, ARCHITECTURE) != 0 && + strcmp(pkg_owner->installed.architecture, "all") != 0) + { + fputc(':', stdout); + fputs(pkg_owner->installed.architecture, stdout); + } found++; } filepackages_iter_free(iter); -- 1.7.1

