[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#174869: marked as done (dpkg -l doesn't show full package names)



Your message dated Wed, 1 Jan 2003 04:48:48 +0100
with message-id <20030101034848.GA17392@wiggy.net>
and subject line Bug#174869: dpkg -l doesn't show full package names
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Dec 2002 17:11:13 +0000
>From zefram@fysh.org Tue Dec 31 11:11:04 2002
Return-path: <zefram@fysh.org>
Received: from (bowl.fysh.org) [81.5.149.242] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18TPuy-0001n0-00; Tue, 31 Dec 2002 11:11:04 -0600
Received: from zefram by bowl.fysh.org with local (Exim 3.35 #1 (Debian))
	id 18TPuv-0005iw-00; Tue, 31 Dec 2002 17:11:01 +0000
Date: Tue, 31 Dec 2002 17:11:01 +0000
To: submit@bugs.debian.org
Subject: dpkg -l doesn't show full package names
Message-ID: <[🔎] 20021231171101.GA18967@fysh.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
From: Zefram <zefram@fysh.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-4.6 required=5.0
	tests=SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 

Package: dpkg
Version: 1.10.9

# dpkg -l 'kernel-pcmcia*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  kernel-pcmcia- <none>         (no description available)
un  kernel-pcmcia- <none>         (no description available)
un  kernel-pcmcia- <none>         (no description available)
un  kernel-pcmcia- <none>         (no description available)
un  kernel-pcmcia- <none>         (no description available)
un  kernel-pcmcia- <none>         (no description available)
ii  kernel-pcmcia- 2.4.19-4       Mainstream PCMCIA modules 2.4.19 on PPro/Cel

Informative, no?  There doesn't seem to be any way to stop dpkg -l
truncating the package names.  Particularly annoying when I'm using
dpkg -l for its globbing capability, where the package name (usually
the far end of the package name) is the part of the output that I'm most
interested in.

I've found a partial workaround.  By lying about the terminal width
(through stty), I can get dpkg to use a wider field for the package name.
But it still truncates to whatever field width it decides on, and if I
give a really enormous terminal width (to make the field `big enough')
then each line of output is really enormous.  This also only works when
output is directly to a tty: when outputting to a pipe (e.g., a pipe to
less) it reverts to 80 column output, with the results shown above.

In my opinion, the package name is such a fundamentally important part
of dpkg -l output that it should never be truncated at all.  Version
numbers and descriptions can be relegated to a second line if necessary.
But I don't particularly want to argue the case to change the default
behaviour, so if you're particularly fond of the current behaviour then
I'll be happy with merely an option for the non-truncating behaviour
(perhaps -w, a la ps).

-zefram

---------------------------------------
Received: (at 174869-done) by bugs.debian.org; 1 Jan 2003 03:48:56 +0000
>From wichert@wiggy.net Tue Dec 31 21:48:55 2002
Return-path: <wichert@wiggy.net>
Received: from home.wiggy.net (mx1.wiggy.net) [213.84.101.140] ([Q9ZNy+HxxTTJUzFPAuZl2GMybDwsbp2Y])
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18TZsF-0001JG-00; Tue, 31 Dec 2002 21:48:55 -0600
Received: from wichert by mx1.wiggy.net with local (Exim 3.35 #1 (Debian))
	id 18TZs8-0004Wj-00; Wed, 01 Jan 2003 04:48:48 +0100
Date: Wed, 1 Jan 2003 04:48:48 +0100
From: Wichert Akkerman <wichert@wiggy.net>
To: Zefram <zefram@fysh.org>, 174869-done@bugs.debian.org
Subject: Re: Bug#174869: dpkg -l doesn't show full package names
Message-ID: <20030101034848.GA17392@wiggy.net>
References: <[🔎] 20021231171101.GA18967@fysh.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 20021231171101.GA18967@fysh.org>
User-Agent: Mutt/1.3.28i
Delivered-To: 174869-done@bugs.debian.org
X-Spam-Status: No, hits=-15.9 required=5.0
	tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01,
	      TO_LOCALPART_EQ_REAL,USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 

Previously Zefram wrote:
> Informative, no?  There doesn't seem to be any way to stop dpkg -l
> truncating the package names.  Particularly annoying when I'm using
> dpkg -l for its globbing capability, where the package name (usually
> the far end of the package name) is the part of the output that I'm most
> interested in.

Use dpkg-query with the -w option, or set the COLUMNS environment to
make dpkg -l use a wider line.

Wichert.

-- 
Wichert Akkerman <wichert@wiggy.net>           http://www.wiggy.net/
A random hacker



Reply to: