* [gentoo-dev] Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
@ 2016-01-22 14:10 konsolebox
2016-01-22 15:30 ` [gentoo-dev] " Duncan
0 siblings, 1 reply; 9+ messages in thread
From: konsolebox @ 2016-01-22 14:10 UTC (permalink / raw
To: gentoo-dev
Hi, I can't find a way to make `emerge --sync` add an option like `-f`
to `git pull` when it runs it. How about adding sync-git-extra-opts
or sync-git-pull-extra-opts to repos.conf? We already have
sync-rsync-extra-opts for rsync so I think it's fair to add one for
git.
--
konsolebox
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 14:10 [gentoo-dev] Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf konsolebox
@ 2016-01-22 15:30 ` Duncan
2016-01-22 17:05 ` konsolebox
0 siblings, 1 reply; 9+ messages in thread
From: Duncan @ 2016-01-22 15:30 UTC (permalink / raw
To: gentoo-dev
konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as excerpted:
> Hi, I can't find a way to make `emerge --sync` add an option like `-f`
> to `git pull` when it runs it. How about adding sync-git-extra-opts or
> sync-git-pull-extra-opts to repos.conf? We already have
> sync-rsync-extra-opts for rsync so I think it's fair to add one for git.
If you have layman installed, you can set repo sync-type to laymansync,
and layman, in turn, has configuration options that allow you to set
additional options for git as well as the other repo-type fetch commands
(bzr, svn, etc).
Tho AFAIK, that's global, so any git-type repo that is set to laymansync
in repos.conf, will use layman's additional options settings. You could,
however, set only the desired repos to laymansync type, while setting the
others to git sync type, so portage will fetch the one set using normal
options with layman fetching the others using its customized options.
Unfortunately, the laymansync sync-type doesn't seem to be well
documented, either in the layman manpage or in the portage manpage (which
covers repos.conf). You have to have come across it via google or one of
the layman discussions on the wiki or mailing lists, etc, which is why I
knew about it.
But do be aware, laymansync only works with layman installed. If it's
not installed and sync-type is set to laymansync, attempts to sync will
error out with unknown sync-type errors.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 15:30 ` [gentoo-dev] " Duncan
@ 2016-01-22 17:05 ` konsolebox
2016-01-22 18:05 ` Brian Dolbec
0 siblings, 1 reply; 9+ messages in thread
From: konsolebox @ 2016-01-22 17:05 UTC (permalink / raw
To: gentoo-dev
On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@cox.net> wrote:
> konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as excerpted:
>
>> Hi, I can't find a way to make `emerge --sync` add an option like `-f`
>> to `git pull` when it runs it. How about adding sync-git-extra-opts or
>> sync-git-pull-extra-opts to repos.conf? We already have
>> sync-rsync-extra-opts for rsync so I think it's fair to add one for git.
>
> If you have layman installed, you can set repo sync-type to laymansync,
> and layman, in turn, has configuration options that allow you to set
> additional options for git as well as the other repo-type fetch commands
> (bzr, svn, etc).
>
Unfortunately I need it for the `gentoo` repo itself. I do have
layman repos but I update them separately with `layman -S`, and I
don't want them to always get updated together with `gentoo` everytime
I run `emerge --sync`.
--
konsolebox
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 17:05 ` konsolebox
@ 2016-01-22 18:05 ` Brian Dolbec
2016-01-22 19:45 ` konsolebox
0 siblings, 1 reply; 9+ messages in thread
From: Brian Dolbec @ 2016-01-22 18:05 UTC (permalink / raw
To: gentoo-dev
On Sat, 23 Jan 2016 01:05:12 +0800
konsolebox <konsolebox@gmail.com> wrote:
> On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@cox.net> wrote:
> > konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as excerpted:
> >
> >> Hi, I can't find a way to make `emerge --sync` add an option like
> >> `-f` to `git pull` when it runs it. How about adding
> >> sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf? We
> >> already have sync-rsync-extra-opts for rsync so I think it's fair
> >> to add one for git.
> >
> > If you have layman installed, you can set repo sync-type to
> > laymansync, and layman, in turn, has configuration options that
> > allow you to set additional options for git as well as the other
> > repo-type fetch commands (bzr, svn, etc).
> >
>
> Unfortunately I need it for the `gentoo` repo itself. I do have
> layman repos but I update them separately with `layman -S`, and I
> don't want them to always get updated together with `gentoo` everytime
> I run `emerge --sync`.
>
No, the portage sync system controls which repo(s) get synced via the
auto-sync setting. So layman can git sync the gentoo repo like Duncan
described without also syncing your manually synced layman repos.
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 18:05 ` Brian Dolbec
@ 2016-01-22 19:45 ` konsolebox
2016-01-22 20:07 ` Duncan
2016-01-22 20:27 ` Brian Dolbec
0 siblings, 2 replies; 9+ messages in thread
From: konsolebox @ 2016-01-22 19:45 UTC (permalink / raw
To: gentoo-dev
On Sat, Jan 23, 2016 at 2:05 AM, Brian Dolbec <dolsen@gentoo.org> wrote:
> On Sat, 23 Jan 2016 01:05:12 +0800
> konsolebox <konsolebox@gmail.com> wrote:
>
>> On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@cox.net> wrote:
>> > konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as excerpted:
>> >
>> >> Hi, I can't find a way to make `emerge --sync` add an option like
>> >> `-f` to `git pull` when it runs it. How about adding
>> >> sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf? We
>> >> already have sync-rsync-extra-opts for rsync so I think it's fair
>> >> to add one for git.
>> >
>> > If you have layman installed, you can set repo sync-type to
>> > laymansync, and layman, in turn, has configuration options that
>> > allow you to set additional options for git as well as the other
>> > repo-type fetch commands (bzr, svn, etc).
>> >
>>
>> Unfortunately I need it for the `gentoo` repo itself. I do have
>> layman repos but I update them separately with `layman -S`, and I
>> don't want them to always get updated together with `gentoo` everytime
>> I run `emerge --sync`.
>>
>
> No, the portage sync system controls which repo(s) get synced via the
> auto-sync setting. So layman can git sync the gentoo repo like Duncan
> described without also syncing your manually synced layman repos.
Ok I think I follow a bit, but wouldn't it be better to have that
feature without relying on layman?
--
konsolebox
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 19:45 ` konsolebox
@ 2016-01-22 20:07 ` Duncan
2016-01-22 20:27 ` Brian Dolbec
1 sibling, 0 replies; 9+ messages in thread
From: Duncan @ 2016-01-22 20:07 UTC (permalink / raw
To: gentoo-dev
konsolebox posted on Sat, 23 Jan 2016 03:45:14 +0800 as excerpted:
> Ok I think I follow a bit, but wouldn't it be better to have that
> feature without relying on layman?
I won't argue in opposition. However, in that case it should have been
filed as a bug request against portage, on bugzilla, or perhaps discussed
on the portage list first, if you had questions before filing the bug.
This list is for more general gentoo development discussion, tho as you
saw, we try to answer the occasional question coming this way, as well.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 19:45 ` konsolebox
2016-01-22 20:07 ` Duncan
@ 2016-01-22 20:27 ` Brian Dolbec
2016-01-24 8:46 ` konsolebox
1 sibling, 1 reply; 9+ messages in thread
From: Brian Dolbec @ 2016-01-22 20:27 UTC (permalink / raw
To: gentoo-dev
On Sat, 23 Jan 2016 03:45:14 +0800
konsolebox <konsolebox@gmail.com> wrote:
> On Sat, Jan 23, 2016 at 2:05 AM, Brian Dolbec <dolsen@gentoo.org>
> wrote:
> > On Sat, 23 Jan 2016 01:05:12 +0800
> > konsolebox <konsolebox@gmail.com> wrote:
> >
> >> On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@cox.net>
> >> wrote:
> >> > konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as
> >> > excerpted:
> >> >> Hi, I can't find a way to make `emerge --sync` add an option
> >> >> like `-f` to `git pull` when it runs it. How about adding
> >> >> sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf?
> >> >> We already have sync-rsync-extra-opts for rsync so I think it's
> >> >> fair to add one for git.
> >> >
> >> > If you have layman installed, you can set repo sync-type to
> >> > laymansync, and layman, in turn, has configuration options that
> >> > allow you to set additional options for git as well as the other
> >> > repo-type fetch commands (bzr, svn, etc).
> >> >
> >>
> >> Unfortunately I need it for the `gentoo` repo itself. I do have
> >> layman repos but I update them separately with `layman -S`, and I
> >> don't want them to always get updated together with `gentoo`
> >> everytime I run `emerge --sync`.
> >>
> >
> > No, the portage sync system controls which repo(s) get synced via
> > the auto-sync setting. So layman can git sync the gentoo repo like
> > Duncan described without also syncing your manually synced layman
> > repos.
>
> Ok I think I follow a bit, but wouldn't it be better to have that
> feature without relying on layman?
>
Yes, it would be better. But there are only do many hours we each can
spend on Gentoo. I have the repoman rewrite as my primary portage work
in progress at the moment. And this feature is not something I am in
need of...
For those who may wish to add this and/or other features to the sync,
The repos.conf repo definitions are now capable of extra options per
sync type (They don't have to be common to all sync modules). So it is
possible to add this to the git sync module and have specific repo
settings. We are around and eager to help anyone wishing to contribute
patches :)
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-22 20:27 ` Brian Dolbec
@ 2016-01-24 8:46 ` konsolebox
2016-01-25 1:31 ` Brian Dolbec
0 siblings, 1 reply; 9+ messages in thread
From: konsolebox @ 2016-01-24 8:46 UTC (permalink / raw
To: gentoo-dev
On Sat, Jan 23, 2016 at 4:27 AM, Brian Dolbec <dolsen@gentoo.org> wrote:
> On Sat, 23 Jan 2016 03:45:14 +0800
> konsolebox <konsolebox@gmail.com> wrote:
>
>> On Sat, Jan 23, 2016 at 2:05 AM, Brian Dolbec <dolsen@gentoo.org>
>> wrote:
>> > On Sat, 23 Jan 2016 01:05:12 +0800
>> > konsolebox <konsolebox@gmail.com> wrote:
>> >
>> >> On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@cox.net>
>> >> wrote:
>> >> > konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as
>> >> > excerpted:
>> >> >> Hi, I can't find a way to make `emerge --sync` add an option
>> >> >> like `-f` to `git pull` when it runs it. How about adding
>> >> >> sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf?
>> >> >> We already have sync-rsync-extra-opts for rsync so I think it's
>> >> >> fair to add one for git.
>> >> >
>> >> > If you have layman installed, you can set repo sync-type to
>> >> > laymansync, and layman, in turn, has configuration options that
>> >> > allow you to set additional options for git as well as the other
>> >> > repo-type fetch commands (bzr, svn, etc).
>> >> >
>> >>
>> >> Unfortunately I need it for the `gentoo` repo itself. I do have
>> >> layman repos but I update them separately with `layman -S`, and I
>> >> don't want them to always get updated together with `gentoo`
>> >> everytime I run `emerge --sync`.
>> >>
>> >
>> > No, the portage sync system controls which repo(s) get synced via
>> > the auto-sync setting. So layman can git sync the gentoo repo like
>> > Duncan described without also syncing your manually synced layman
>> > repos.
>>
>> Ok I think I follow a bit, but wouldn't it be better to have that
>> feature without relying on layman?
>>
>
> Yes, it would be better. But there are only do many hours we each can
> spend on Gentoo. I have the repoman rewrite as my primary portage work
> in progress at the moment. And this feature is not something I am in
> need of...
>
> For those who may wish to add this and/or other features to the sync,
> The repos.conf repo definitions are now capable of extra options per
> sync type (They don't have to be common to all sync modules). So it is
> possible to add this to the git sync module and have specific repo
> settings. We are around and eager to help anyone wishing to contribute
> patches :)
I made a pull request for it in github. Please check. Thanks.
https://github.com/gentoo/portage/pull/23
--
konsolebox
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-dev] Re: Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf
2016-01-24 8:46 ` konsolebox
@ 2016-01-25 1:31 ` Brian Dolbec
0 siblings, 0 replies; 9+ messages in thread
From: Brian Dolbec @ 2016-01-25 1:31 UTC (permalink / raw
To: gentoo-dev
On Sun, 24 Jan 2016 16:46:41 +0800
konsolebox <konsolebox@gmail.com> wrote:
> On Sat, Jan 23, 2016 at 4:27 AM, Brian Dolbec <dolsen@gentoo.org>
> wrote:
> > On Sat, 23 Jan 2016 03:45:14 +0800
> > konsolebox <konsolebox@gmail.com> wrote:
> >
> >> On Sat, Jan 23, 2016 at 2:05 AM, Brian Dolbec <dolsen@gentoo.org>
> >> wrote:
> >> > On Sat, 23 Jan 2016 01:05:12 +0800
> >> > konsolebox <konsolebox@gmail.com> wrote:
> >> >
> >> >> On Fri, Jan 22, 2016 at 11:30 PM, Duncan <1i5t5.duncan@cox.net>
> >> >> wrote:
> >> >> > konsolebox posted on Fri, 22 Jan 2016 22:10:53 +0800 as
> >> >> > excerpted:
> >> >> >> Hi, I can't find a way to make `emerge --sync` add an option
> >> >> >> like `-f` to `git pull` when it runs it. How about adding
> >> >> >> sync-git-extra-opts or sync-git-pull-extra-opts to
> >> >> >> repos.conf? We already have sync-rsync-extra-opts for rsync
> >> >> >> so I think it's fair to add one for git.
> >> >> >
> >> >> > If you have layman installed, you can set repo sync-type to
> >> >> > laymansync, and layman, in turn, has configuration options
> >> >> > that allow you to set additional options for git as well as
> >> >> > the other repo-type fetch commands (bzr, svn, etc).
> >> >> >
> >> >>
> >> >> Unfortunately I need it for the `gentoo` repo itself. I do have
> >> >> layman repos but I update them separately with `layman -S`, and
> >> >> I don't want them to always get updated together with `gentoo`
> >> >> everytime I run `emerge --sync`.
> >> >>
> >> >
> >> > No, the portage sync system controls which repo(s) get synced via
> >> > the auto-sync setting. So layman can git sync the gentoo repo
> >> > like Duncan described without also syncing your manually synced
> >> > layman repos.
> >>
> >> Ok I think I follow a bit, but wouldn't it be better to have that
> >> feature without relying on layman?
> >>
> >
> > Yes, it would be better. But there are only do many hours we each
> > can spend on Gentoo. I have the repoman rewrite as my primary
> > portage work in progress at the moment. And this feature is not
> > something I am in need of...
> >
> > For those who may wish to add this and/or other features to the
> > sync, The repos.conf repo definitions are now capable of extra
> > options per sync type (They don't have to be common to all sync
> > modules). So it is possible to add this to the git sync module and
> > have specific repo settings. We are around and eager to help
> > anyone wishing to contribute patches :)
>
> I made a pull request for it in github. Please check. Thanks.
>
> https://github.com/gentoo/portage/pull/23
>
Thank you, the patch looks good. I'll post the patch to our
development list for review before merge.
It'll likely be included in the next release soon.
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-01-25 1:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 14:10 [gentoo-dev] Add sync-git-extra-opts or sync-git-pull-extra-opts to repos.conf konsolebox
2016-01-22 15:30 ` [gentoo-dev] " Duncan
2016-01-22 17:05 ` konsolebox
2016-01-22 18:05 ` Brian Dolbec
2016-01-22 19:45 ` konsolebox
2016-01-22 20:07 ` Duncan
2016-01-22 20:27 ` Brian Dolbec
2016-01-24 8:46 ` konsolebox
2016-01-25 1:31 ` Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox