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