| 319 |
# ignore packages ending with - when using -d |
# ignore packages ending with - when using -d |
| 320 |
@complete = grep {!/-$/} @complete if $opt_d; |
@complete = grep {!/-$/} @complete if $opt_d; |
| 321 |
|
|
| 322 |
foreach my $pack (reverse @complete) { |
foreach (reverse @complete) { |
| 323 |
if ( $pack =~ /^(.*)[_=+-]$/ and $1 and $cache->exists($1)) { |
my $pack = $_; |
| 324 |
|
if ( /^(.+)[_=+-]$/ and $1 and $cache->exists($1)) { |
| 325 |
$pack = $1; |
$pack = $1; |
| 326 |
} |
} |
| 327 |
if (! defined ($complete{$pack})) { |
if (! defined ($complete{$pack})) { |
| 361 |
|
|
| 362 |
# simulate APTs and aptitudes understanding of "special" package names |
# simulate APTs and aptitudes understanding of "special" package names |
| 363 |
# suffixed by -, + |
# suffixed by -, + |
| 364 |
elsif ( $pack =~ /^(.*)[_=+-]$/ and $cache->exists($1)) { |
elsif ( $pack =~ /^(.+)[_=+-]$/ and $cache->exists($1)) { |
| 365 |
|
|
| 366 |
if (defined ($cache->{$1}{VersionList})) { |
if (defined ($cache->{$1}{VersionList})) { |
| 367 |
push @known, $pack; |
push @known, $pack; |