1 |
konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as excerpted: |
2 |
|
3 |
> Hi, I can't find a way to make `emerge --sync` add an option like `-f` |
4 |
> to `git pull` when it runs it. How about adding sync-git-extra-opts or |
5 |
> sync-git-pull-extra-opts to repos.conf? We already have |
6 |
> sync-rsync-extra-opts for rsync so I think it's fair to add one for git. |
7 |
|
8 |
If you have layman installed, you can set repo sync-type to laymansync, |
9 |
and layman, in turn, has configuration options that allow you to set |
10 |
additional options for git as well as the other repo-type fetch commands |
11 |
(bzr, svn, etc). |
12 |
|
13 |
Tho AFAIK, that's global, so any git-type repo that is set to laymansync |
14 |
in repos.conf, will use layman's additional options settings. You could, |
15 |
however, set only the desired repos to laymansync type, while setting the |
16 |
others to git sync type, so portage will fetch the one set using normal |
17 |
options with layman fetching the others using its customized options. |
18 |
|
19 |
Unfortunately, the laymansync sync-type doesn't seem to be well |
20 |
documented, either in the layman manpage or in the portage manpage (which |
21 |
covers repos.conf). You have to have come across it via google or one of |
22 |
the layman discussions on the wiki or mailing lists, etc, which is why I |
23 |
knew about it. |
24 |
|
25 |
But do be aware, laymansync only works with layman installed. If it's |
26 |
not installed and sync-type is set to laymansync, attempts to sync will |
27 |
error out with unknown sync-type errors. |
28 |
|
29 |
-- |
30 |
Duncan - List replies preferred. No HTML msgs. |
31 |
"Every nonfree program has a lord, a master -- |
32 |
and if you use the program, he is your master." Richard Stallman |