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