Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 90890 Details for
Bug 139226
patch to add rpm '--last' option to epm-0.9.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add '--last' option
epm-0.9.1-last-option.patch (text/plain), 1.22 KB, created by
Timothy Stotts
on 2006-07-04 12:25:38 UTC
(
hide
)
Description:
patch to add '--last' option
Filename:
MIME Type:
Creator:
Timothy Stotts
Created:
2006-07-04 12:25:38 UTC
Size:
1.22 KB
patch
obsolete
>--- bin/epm-0.9.1 2006-07-04 15:18:32.000000000 -0400 >+++ bin/epm 2006-07-04 15:16:54.000000000 -0400 >@@ -344,6 +344,29 @@ > return @pkgs; > } > >+# Utility function to do --last >+sub sort_mtime(@) >+{ >+ my (@pkgs) = @_; >+ my @npkgs; >+ my %mtimes; >+ >+ for $p (@pkgs) { >+ my $ldbpath = "$dbpath/$p"; >+ >+ # When was this last built/installed? >+ # Use a unique key (not just mtime) incase two packages have >+ # identical mtime. >+ $mtimes{ (stat "$ldbpath/USE")[9] . $p } = $p; >+ } >+ >+ for $k (sort(keys(%mtimes))) { >+ unshift @npkgs, $mtimes{$k}; >+ } >+ >+ return @npkgs; >+} >+ > # Utility function to do -V > sub verify($) > { >@@ -503,6 +526,11 @@ > } > } > >+ # Sort package order. >+ if ($opt{'last'}) { >+ @pkgs = sort_mtime(@pkgs); >+ } >+ > for my $p (@pkgs) { > # Verify package > if ($opt{'V'}) { verify($p); next; } >@@ -661,6 +689,7 @@ > 'c', # list configuration files (implies -l) > 'dump', # show all verifiable information for each file > # (must be used with -l, -c, or -d) >+ 'last', # order package listing by most recent install first > 'R|requires', # list package dependencies > 'scripts', # print the various [un]install scripts > 'G|showgroup', # include group name in output
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 139226
: 90890