LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   [Solved] SBopkg queues git download (http://www.linuxquestions.org/questions/slackware-14/%5Bsolved%5D-sbopkg-queues-git-download-884469/)

Mark Pettit 06-04-2011 04:05 AM

[Solved] SBopkg queues git download
 
Anyone know of the simple (!) command syntax to :

a) download the full SQF tree from http://gitorious.org/sbopkg-slackware-queues

b) maintain that tree WITHOUT having to download the whole dang thing again.

I'm 100% certain this is possible - that's exactly what source-code repository tools like subversion and git are supposed to do. But Git is complex and that site doesn't seem to have an obvious (to me) method of doing part b)

Thanx

ponce 06-04-2011 04:15 AM

hope I have understood the question

I do like this: the first time
Code:

cd /var/lib/sbopkg
mv queues old.queues
git clone git://gitorious.org/sbopkg-slackware-queues/sbopkg-slackware-queues.git queues

(here takes just a few seconds to clone it)

when I want to update it
Code:

cd /var/lib/sbopkg/queues
git pull


Mark Pettit 06-04-2011 04:42 AM

Ah - it was the 'git pull' that evaded me. So simple - maybe the maintainer (Mauro Giachero) could put a simple readme for people like me who just want to use his fabulous work, without getting into the intricacies of git. Many thanks @Ponce

ponce 06-04-2011 05:12 AM

sometimes, but not with this repository I think, you'll find that pulling will result in conflicting commits: it happens when you rebase a lot (like me on SBo-git, following master branch of slackbuilds.org) and then recreate branches from scratch to merge all your stuff (the current default branch there).
the faster way there is to update in cases like those, is to delete all and reclone/resync,
Code:

rm -fR /var/lib/sbopkg/SBo-git
sbopkg -r

you could also delete the local branch and retrack the current one on the remote (ORIG_HEAD)
Code:

cd /var/lib/sbopkg/SBo-git
git reset --hard
git branch -M master master-old
git checkout -b master
git reset --hard ORIG_HEAD
git branch -D master-old
git checkout -f

and it will have the same effect

whatever you feel easier :)

Mark Pettit 06-04-2011 06:42 AM

As I'm not trying to actually modify the Q's themselves, but rather to just use the latest ones, the simple method you indicated in your first post looks the best. If the git pull gives an error, then I can always just delete the entire subdirectory and do an initial pull (ie first load) as you suggested.
I really love the SlackBuilds, but (whoa - must be careful here... :-), getting the dependencies right by manually checking README's and then drawing up a dependency list on a piece of paper was becoming a hassle. So the SQF gitorious work from Mauro Giachero is really fantastic. It would be fantastic to actually have this as an official part of SlackBuild.org, and then part of the menu (just like the current rsync is). Cheers.


All times are GMT -5. The time now is 06:03 AM.