LinuxQuestions.org

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

Mark Pettit 06-04-2011 03: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 03: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 03: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 04: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 05: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.

jheengut 04-17-2015 04:46 AM

Gitorious is being acquired by GitLab
 
https://gitorious.org/sbopkg-slackware-queues

System notice: Gitorious is being acquired by GitLab and gitorious.org will shut down end of May. Please import your repositories to GitLab.com - Read about it



so rebase your git remote elsewhere ...

willysr 04-17-2015 06:04 AM

it's easier to build your own queue using sqg that has been provided in sbopkg

clawjam 04-19-2015 12:31 PM

Indeed. I did a little poking around when git pull failed for me and found this:

http://slackblogs.blogspot.fr/2014/0...es-easily.html


All times are GMT -5. The time now is 12:56 AM.