Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520216 - app-portage/layman-9999 add support for multiple (separated) additional git_syncopts
Summary: app-portage/layman-9999 add support for multiple (separated) additional git_s...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Brian Dolbec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 538330
  Show dependency tree
 
Reported: 2014-08-18 23:07 UTC by Michael Weber (RETIRED)
Modified: 2015-02-07 20:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against layman-9999 (0001-Allow-addition-of-multiple-git_syncopts-e.g.-origin-.patch,1.32 KB, text/plain)
2014-08-18 23:09 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2014-08-18 23:07:51 UTC
I have a tendency to do git work on laymans overlay checkouts,

first, the master (editing) copy of my developer overlay is a `layman -a xmw` checkout with removed user.name & user.email (bug 480884) and ssh:// upload-url.

A second use case is are local modifications of overlays, say,

layman -a lorem_ipsum #defined in /etc/layman/overlays/lorem_ipsum.xml
cd /var/lib/layman/lorem_ipsum
git config --unset user.email
git config --unset user.name
git branch xmw
#do editing stuff
git commit -p
git send-mail HEAD~1..HEAD # async wait for upstream to respond

(later/in cron) layman -S #continue using this centralized solution

Now, having branch xmw checked out, `layman -s lorem_ipsum` fails running just `git pull`, I need `git pull origin master` to merge upstream changes into this branch.

TL;DR

git_syncopts: origin master
in layman.conf gets passed as a single command line argument 'origin master' which fails.

Proposed solution is to use newlines for argument separation, spaces might be legal argument values.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2014-08-18 23:09:30 UTC
Created attachment 383096 [details]
patch against layman-9999
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2015-02-07 20:59:47 UTC
Sorry, it's taken so long.  This was not a complete patch (all repo types possible) plus I didn't know if I wanted to enforce splitting the args by line.

I've applied a patch waiting for Devan to review that uses space separation instead.

I think space separation is a lot more logicial for the majority of users.  However if you need line separation due to long options data.  We could re-open this bug and apply a config option for the split() method.  That way it can be configured for space ' ' or '\n' separation.

see also bug 538330