Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433561 - Please add a possibility of setting repository name in layout.conf/repos.conf
Summary: Please add a possibility of setting repository name in layout.conf/repos.conf
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 240187 462382
  Show dependency tree
 
Reported: 2012-08-31 18:47 UTC by Michał Górny
Modified: 2013-04-03 03:13 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-31 18:47:07 UTC
Currently, the repository names are set explicitly in profiles/repo_name. This is very inconvenient when working with partial checkout of gentoo-x86 CVS which needs to be renamed not to collide with main (complete) gentoo-x86 repository.

Firstly, please add a key for repository name for metadata/layout.conf file. This seems like a better location for it, and it will allow me to use echangelog in profiles/ without constantly removing 'repo_name' from modified files.

Secondly, it would be great if that key could be altered from within repos.conf; possibly by specifying the affected repository through its path. In other words, have:

    [/usr/src/gx86]
    repo_name = gentoo-cvs

Without altering the original repository.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-12 00:04:39 UTC
Zac, ping. Could we do this, please? I need this for local gx86 checkout. Otherwise, I have to make sure not to commit changed repo_name every time I commit in profiles...
Comment 2 Zac Medico gentoo-dev 2013-02-12 00:11:03 UTC
Yeah, it's definitely doable. However, since PMS says profiles/repo_name is required, we should hide it behind a profile-formats value (like bug #414961).
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-12 00:24:13 UTC
I think if layout.conf would just override the profiles value, it'd be fine as-is.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2013-02-12 10:41:23 UTC
(In reply to comment #3)
> I think if layout.conf would just override the profiles value, it'd be fine
> as-is.

I'd avoid that route frankly.  profiles/repo_name was a bad notion forced in at the time; just set a format marker for the repository in layout.conf and store the name there- no fallback machinery.  Fallback just makes things a PITA.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-12 10:56:41 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I think if layout.conf would just override the profiles value, it'd be fine
> > as-is.
> 
> I'd avoid that route frankly.  profiles/repo_name was a bad notion forced in
> at the time; just set a format marker for the repository in layout.conf and
> store the name there- no fallback machinery.  Fallback just makes things a
> PITA.

I can leave with that as long as it won't make repoman do something weird when committing to the repo :P.
Comment 6 Brian Harring (RETIRED) gentoo-dev 2013-02-12 21:10:47 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > I think if layout.conf would just override the profiles value, it'd be fine
> > > as-is.
> > 
> > I'd avoid that route frankly.  profiles/repo_name was a bad notion forced in
> > at the time; just set a format marker for the repository in layout.conf and
> > store the name there- no fallback machinery.  Fallback just makes things a
> > PITA.
> 
> I can leave with that as long as it won't make repoman do something weird
> when committing to the repo :P.

Well, if you were to write the patch, you could ensure it behaved.  Hint hint. ;)
Comment 8 Zac Medico gentoo-dev 2013-04-01 19:02:57 UTC
This is fixed in 2.1.11.60 and 2.2.0_alpha171.
Comment 9 SpanKY gentoo-dev 2013-04-03 02:48:12 UTC
(In reply to comment #7)

missing documentation in the man page though
Comment 10 Zac Medico gentoo-dev 2013-04-03 03:13:22 UTC
(In reply to comment #9)
> (In reply to comment #7)
> 
> missing documentation in the man page though

Fixed:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e0a1cd8432b4c528fb47a7229002c5a3b468039e