[Aptitude-devel] Bug#928033: Inconsistent number of newlines at the end of "show": 0, 1, 2

積丹尼 Dan Jacobson jidanni at jidanni.org
Fri Apr 26 04:11:38 BST 2019


Package: aptitude
Version: 0.8.11-7
Severity: minor

If a user does
$ aptitude show package1 package2...
and one of them is a virtual package, it "glues itself onto the header of
the following package", because it is missing its blank line at bottom.

# aptitude show twitter-bootstrap libtwitter-api-perl | colrm 14 | head
Package: twit
State: not a
Provided by:
Package: libt
Version: 1.00
State: not in
Priority: opt
Section: perl
Maintainer: D
Architecture:

So it takes a skilled eye to realize that they are actually looking at
two packages. So please add the newline.

Let's look at the newline situation at the bottom of various packages listings,

# for i in tw... ; do echo ===== $i; aptitude show $i|nl -b a|tail -n 3; done
===== twittering-mode
    34  Homepage: http://twmode.sf.net/
    35
    36
===== twitterwatch
    19  Homepage: https://github.com/chaica/twitterwatch
    20
    21
===== twitter-bootstrap
     1  Package: twitter-bootstrap
     2  State: not a real package
     3  Provided by: libjs-twitter-bootstrap (2.0.2+dfsg-10)
===== libtwitter-api-perl
    38  Homepage: https://metacpan.org/release/Twitter-API
    39
    40
===== libnet-twitter-perl
    23  Homepage: https://metacpan.org/release/Net-Twitter
    24  Tags: devel::lang:perl, devel::library, implemented-in::perl, role::shared-lib, web::microblog
    25

In fact from our small sample we see if there are no e.g., Tags, an
inconsistent second newline is appended to the bottom too!



More information about the Aptitude-devel mailing list