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:
Created attachment 16713 [details, diff] repoman last report cache patch
the problem with using static names is that they can be exploited in a directory like /tmp ...
I'm moving the files to /var/cache/edb as auxcache used to have pickled files there. That ok SpanKY? Puggy
/var/cache/edb is fine. Owned by root:portage preferably. The owner doesn't particularlly matter as long as it is 0664.
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.
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.
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
in 49-r3