Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 438640 Details for
Bug 586658
app-portage/gentoolkit: let eclean handle binpkgs with .xpak suffix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Keep only packages with BUILD_TIME equal to installed one.
eclean-check-buildtime.patch (text/plain), 1.48 KB, created by
Manuel Mommertz
on 2016-06-24 12:16:45 UTC
(
hide
)
Description:
Keep only packages with BUILD_TIME equal to installed one.
Filename:
MIME Type:
Creator:
Manuel Mommertz
Created:
2016-06-24 12:16:45 UTC
Size:
1.48 KB
patch
obsolete
>--- gentoolkit-0.3.0.9/pym/gentoolkit/eclean/search.py 2016-06-21 14:01:01.000000000 +0200 >+++ gentoolkit-0.3.0.9/pym/gentoolkit/eclean/search.py 2016-06-24 13:42:14.460974716 +0200 >@@ -560,24 +560,28 @@ > if stat.S_ISLNK(st[stat.ST_MODE]): > clean_me[cpv].append(os.path.realpath(path)) > # keep only obsolete ones >- if destructive: >- dbapi = var_dbapi >- if package_names: >- cp_all = dict.fromkeys(dbapi.cp_all()) >- else: >- cp_all = {} >+ if destructive and package_names: >+ cp_all = dict.fromkeys(var_dbapi.cp_all()) > else: >- dbapi = port_dbapi > cp_all = {} > for cpv in list(clean_me): > if exclDictMatchCP(exclude,portage.cpv_getkey(cpv)): > # exclusion because of the exclude file > del clean_me[cpv] > continue >- if dbapi.cpv_exists(cpv): >- # exclusion because pkg still exists (in porttree or vartree) >+ if not destructive and port_dbapi.cpv_exists(cpv): >+ # exclusion because pkg still exists (in porttree) > del clean_me[cpv] > continue >+ if destructive and var_dbapi.cpv_exists(cpv): >+ buildtime = var_dbapi.aux_get(cpv, ['BUILD_TIME'])[0].encode('utf-8').strip() >+ clean_me[cpv] = [path for path in clean_me[cpv] >+ # only keep path if BUILD_TIME is identical with vartree >+ if portage.xpak.tbz2(path).getfile('BUILD_TIME').strip() != buildtime] >+ if not clean_me[cpv]: >+ # nothing we can clean for this package >+ del clean_me[cpv] >+ continue > if portage.cpv_getkey(cpv) in cp_all: > # exlusion because of --package-names > del clean_me[cpv]
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 586658
:
438390
|
438640
|
438670
|
438818
|
438834