[paludis-dev] [Paludis] #1033: add --sync-suffic

Paludis trac at pioto.org
Sat Nov 6 20:55:05 UTC 2010


#1033: add --sync-suffic
--------------------------+-------------------------------------------------
 Reporter:  pipping       |          Owner:     
     Type:  enhancement   |         Status:  new
 Priority:  Sometime      |      Milestone:     
Component:  clients/cave  |        Version:  scm
 Keywords:                |      Blockedby:     
 Blocking:                |   Distribution:  N/A
--------------------------+-------------------------------------------------
 {{{
 20:06 < pipping> i've made a modification to your workflow for me (read: i
 made it suck)
 20:07 < pipping> by default i want `cave sync` to use the online versions
 of the repositories
 20:07 < pipping> i only want cave to use my local copies when i'm testing
 a package
 20:08 < pipping> so my desktop.conf e.g. has two lines aside from location
 = :
 20:08 < pipping> #sync = git://git.exherbo.org/desktop.git
 20:08 < pipping> sync =
 git+file:///home/pipping/Documents/Code/checkouts/desktop
 20:08 < pipping> i have two scripts, couple.sh and decouple.sh
 20:09 < pipping> here's decouple.sh: http://dpaste.com/271506/plain/
 20:09 < pipping> couple.sh is just a symlink to that script
 20:09 < pipping> whenever i want paludis to use my local copy, i run
 "couple.sh"
 20:09 < pipping> when i'm done, i run "decouple.sh"
 20:11 < pipping> decouple.sh makes sure the '#' is in front of the line
 with git+file://
 20:11 < pipping> couple.sh makes sure the '#' is in front of the line with
 git://
 20:27 < ciaranm> there should probably be a better way of doing that
 20:28 < ciaranm> maybe allowing repos to define sync = blah ; sync.local =
 blah and then doing cave sync
                  --sync-suffix local
 20:29 < ciaranm> if you want it, work it out and ticket it
 20:33 < pipping> that sounds pretty good
 [..]
 20:39 < pipping> ciaranm: what more needs working out w.r.t --sync-suffix
 local on top of what you just mentioned?
 20:39 < pipping> ciaranm: because it already sounds perfect
 20:40 < ciaranm> pipping: what happens if your repo doesn't define a
 sync.thingyousaid
 20:40 < pipping> error!
 20:40 < ciaranm> does it not sync it? fall back to using sync = ? fall
 back to using sync = , but only if that repo
                  doesn't define any sync.* things?
 20:40 < ciaranm> so you'd have to define sync.local in every single
 syncable repo, even those you don't use locally?
 20:40 < pipping> oh
 20:41 < pipping> well i only meant to use it like 'cs --ss l arbor'
 20:41 < pipping> not 'cs --ss l'
 20:41 < pipping> i guess having it fall back to the default makes sense
 20:42 < ciaranm> fall back to the default, or fall back to the default
 only if no sync.* things exist for that repo?
 20:42 < pipping> i guess that needs more thought indeed
 20:44 < ciaranm> also more pens
 20:44  * ciaranm gigglse
 20:52 < ciaranm> pipping: ticket!
 }}}

-- 
Ticket URL: <http://trac.pioto.org/paludis/ticket/1033>
Paludis <http://paludis.pioto.org/>
Paludis, the Other Package Mangler


More information about the paludis-dev mailing list