Gentoo Archives: gentoo-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
Date: Fri, 22 Jan 2016 20:28:56
Message-Id: 20160122122753.7a87e19b.dolsen@gentoo.org
In Reply to: Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf by konsolebox
1 On Sat, 23 Jan 2016 03:45:14 +0800
2 konsolebox <konsolebox@×××××.com> wrote:
3
4 > On Sat, Jan 23, 2016 at 2:05 AM, Brian Dolbec <dolsen@g.o>
5 > wrote:
6 > > On Sat, 23 Jan 2016 01:05:12 +0800
7 > > konsolebox <konsolebox@×××××.com> wrote:
8 > >
9 > >> On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@×××.net>
10 > >> wrote:
11 > >> > konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as
12 > >> > excerpted:
13 > >> >> Hi, I can't find a way to make `emerge --sync` add an option
14 > >> >> like `-f` to `git pull` when it runs it. How about adding
15 > >> >> sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf?
16 > >> >> We already have sync-rsync-extra-opts for rsync so I think it's
17 > >> >> fair to add one for git.
18 > >> >
19 > >> > If you have layman installed, you can set repo sync-type to
20 > >> > laymansync, and layman, in turn, has configuration options that
21 > >> > allow you to set additional options for git as well as the other
22 > >> > repo-type fetch commands (bzr, svn, etc).
23 > >> >
24 > >>
25 > >> Unfortunately I need it for the `gentoo` repo itself. I do have
26 > >> layman repos but I update them separately with `layman -S`, and I
27 > >> don't want them to always get updated together with `gentoo`
28 > >> everytime I run `emerge --sync`.
29 > >>
30 > >
31 > > No, the portage sync system controls which repo(s) get synced via
32 > > the auto-sync setting. So layman can git sync the gentoo repo like
33 > > Duncan described without also syncing your manually synced layman
34 > > repos.
35 >
36 > Ok I think I follow a bit, but wouldn't it be better to have that
37 > feature without relying on layman?
38 >
39
40 Yes, it would be better. But there are only do many hours we each can
41 spend on Gentoo. I have the repoman rewrite as my primary portage work
42 in progress at the moment. And this feature is not something I am in
43 need of...
44
45 For those who may wish to add this and/or other features to the sync,
46 The repos.conf repo definitions are now capable of extra options per
47 sync type (They don't have to be common to all sync modules). So it is
48 possible to add this to the git sync module and have specific repo
49 settings. We are around and eager to help anyone wishing to contribute
50 patches :)
51
52
53 --
54 Brian Dolbec <dolsen>

Replies