FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 12-24-2010, 12:33 AM
Steve Langasek
 
Default Output pkg:arch in dpkg -S output for non-native packages

---
src/query.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/query.c b/src/query.c
index 68244ac..552f56e 100644
--- a/src/query.c
+++ b/src/query.c
@@ -215,6 +215,13 @@ static int searchoutput(struct filenamenode *namenode) {
for (i=0; i < PERFILEPACKAGESLUMP && packageslump->pkgs[i]; i++) {
if (found) fputs(", ",stdout);
fputs(packageslump->pkgs[i]->name,stdout);
+ if (strcmp(packageslump->pkgs[i]->installed.architecture,
+ ARCHITECTURE) != 0 &&
+ strcmp(packageslump->pkgs[i]->installed.architecture, "all") != 0)
+ {
+ fputc(':', stdout);
+ fputs(packageslump->pkgs[i]->installed.architecture, stdout);
+ }
found++;
}
}
--
1.7.1


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20101224013341.GG4604@virgil.dodds.net">http://lists.debian.org/20101224013341.GG4604@virgil.dodds.net
 
Old 12-24-2010, 02:14 AM
Steve Langasek
 
Default Output pkg:arch in dpkg -S output for non-native packages

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/
slangasek@ubuntu.com vorlon@debian.org
 

Thread Tools




All times are GMT. The time now is 07:47 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org