Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27473 - Add last report memory to repoman
Summary: Add last report memory to repoman
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-28 05:30 UTC by Douglas Russell (RETIRED)
Modified: 2011-10-30 22:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
repoman last report cache patch (repomanmem.diff,3.56 KB, patch)
2003-08-28 05:35 UTC, Douglas Russell (RETIRED)
Details | Diff
RepoMan rem enhancement. Based on portage-2.0.49-r1. Patch on clean repoman (repoman.onclean.rem.diff,3.91 KB, patch)
2003-08-29 04:28 UTC, Douglas Russell (RETIRED)
Details | Diff
RepoMan rem enhancement. Based on portage-2.0.49-r1. Patch on syn patched repoman (repoman.onsyn.rem.diff,3.78 KB, patch)
2003-08-29 04:31 UTC, Douglas Russell (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Russell (RETIRED) gentoo-dev 2003-08-28 05:30:55 UTC
Basically with this patch repoman saves the data from the last scan to a couple
of files in /tmp (If there is a more appropriate place to save them, let me know
please!) and then the two new switches can be used to redisplay the information:
last: displays last report
lfull: displays full last report
This patch is particularly useful for getting a full report after doing a
non-full report, as it does not have to re-scan the section of the tree to get
it. Basically, it's a time saver. A huge time saver if you ever do a scan on
large sections of the CVS tree.

Patch is based on portage-2.0.49-r1 and has been tested and confirmed to work in
conjunction with my repoman syntax and metadata enhancement:
http://bugs.gentoo.org/show_bug.cgi?id=27353

Puggy

Reproducible: Always
Steps to Reproduce:
Comment 1 Douglas Russell (RETIRED) gentoo-dev 2003-08-28 05:35:55 UTC
Created attachment 16713 [details, diff]
repoman last report cache patch
Comment 2 SpanKY gentoo-dev 2003-08-28 06:42:42 UTC
the problem with using static names is that they can be exploited in a directory 
like /tmp ... 
Comment 3 Douglas Russell (RETIRED) gentoo-dev 2003-08-28 11:46:49 UTC
I'm moving the files to /var/cache/edb as auxcache used to have pickled files there. That ok SpanKY?

Puggy
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-08-28 13:30:20 UTC
/var/cache/edb is fine. Owned by root:portage preferably.
The owner doesn't particularlly matter as long as it is 0664.
Comment 5 Douglas Russell (RETIRED) gentoo-dev 2003-08-29 04:28:38 UTC
Created attachment 16751 [details, diff]
RepoMan rem enhancement. Based on portage-2.0.49-r1. Patch on clean repoman

This patch patches the clean version of repoman. I.e. unpatched

Fixed:
Secured the files used to save the repoman report data.
Comment 6 Douglas Russell (RETIRED) gentoo-dev 2003-08-29 04:31:34 UTC
Created attachment 16752 [details, diff]
RepoMan rem enhancement. Based on portage-2.0.49-r1. Patch on syn patched repoman

RepoMan enhancements. Based on portage-2.0.49-r1. Patch on syn patched repoman.
This patches repoman after it has been patched with the (clean) syn patch:
http://bugs.gentoo.org/show_bug.cgi?id=27353

Fixed:
Secured the files used to save the repoman report data.
Comment 7 Douglas Russell (RETIRED) gentoo-dev 2003-08-29 04:35:07 UTC
The reason for the 2 new patches is because the patches for my 2 seperate enhancements no longer work together without manual tampering. I've worked around this with a patch for adding the cache enhancement on a clean repoman and one for adding the cache enhancement to a repoman already patched with the syntactical and repoman enhancement patch (http://bugs.gentoo.org/show_bug.cgi?id=27353).

Puggy
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-09-02 02:50:52 UTC
in 49-r3