Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 402099

Summary: portage should honor /etc/portage/repos.conf for overlay priority
Product: Portage Development Reporter: quazgar <quazgar>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://forums.gentoo.org/viewtopic-p-6745132.html#6745132
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 402213    
Attachments: Patch to portage.repository.config

Description quazgar 2012-02-03 20:58:05 UTC
portage-2.2.0-alpha84 does not use the priorities given in /etc/portage/repos.conf for overlays. The attached patch should fix this.

Reproducible: Always




See also the forum threads https://forums.gentoo.org/viewtopic-p-6745132.html#6745132 and https://forums.gentoo.org/viewtopic-p-6946386.html#6946386

This happens around line 300 in /usr/lib64/portage/pym/portage/repository/config.py (or whereever the file lives), where only a few other properties are taken from repos.conf.

The attached patch looks for a 'priority' option and, if this is successful, uses this value instead of the default priority.
Comment 1 quazgar 2012-02-03 21:00:26 UTC
Created attachment 300881 [details, diff]
Patch to portage.repository.config

Patch to implement the proposed behaviour
Comment 3 quazgar 2012-02-04 11:34:34 UTC
(In reply to comment #2)
> Thanks, this is in git:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9ad263416ec282d8c6cf007ca84bf716c49c4f69

Thanks!
Comment 4 Zac Medico gentoo-dev 2012-02-04 23:30:36 UTC
This is fixed in 2.1.10.45 and 2.2.0_alpha85.