sqg - sbopkg queuefile generator
Just committed to svn r918:
"import sqg - sbopkg queuefile generator - into contrib/. Thanks to slakmagik and Mauro Giachero for suggestions, comments, and modifications." From the top of the script: "A script designed to generate queuefiles for sbopkg with recursively-listed dependencies from the REQUIRES line of the .info files." You can pull it from SVN or grab it directly from here: https://code.google.com/p/sbopkg/sou...oc/contrib/sqg We welcome testers and feedback. Thanks! |
thanks for this :)
I'll try it soon (work things are taking most of my time ATM :( ). |
Thanks, ponce. I'd definitely appreciate your feedback.
|
Great litle script!
I only have one question. Does it check if any required packages are already installed on the system? Many thanks |
Quote:
When you load up the resulting queuefile in sbopkg then sbopkg will, just like with other queuefiles, mark what is already installed when you process the queue. |
It might be a good idea to check for "%README%" in the REQUIRES line and just echo the packages in the generated queuefile that include it to the console at the end. I understand that one is expected to read the README of each package in the queue before building, but this might make it clear that certain packages require additional action. Or since this will probably be used in bulk, add comments in the queuefile with README packages. Just a thought.
|
While the idea of checking for %README% is a good one, it only works reliably if all maintainers add it to their info-files, when clarifications about optional dependencies (or other options) are mentioned in the README.
|
Quote:
|
Hi Chess, :)
I played a little with sqg using it with my repository: - I've tried to modify it a little to use it when we have a git repo; - I've deleted the setting of REPO_ROOT, REPO_NAME and REPO_BRANCH because they override the ones specified in /etc/sbopkg/sbopkg.conf (personal taste I think, really dunno if this is on purpose); - doing the above, I had to remove the check for REPO_DIR because that happens before /etc/sbopkg/sbopkg.conf is sourced. http://pastebin.com/jMUMFCa9 |
Quote:
Quote:
Quote:
Thanks again for checking it out and offering some suggestions. We should definitely add the git part. |
|
I just checked it: works fine and looks better than my attempt :)
about the REPO_* variables... I understand the script it's meant to be edited before launching it so this is really of little importance, but I was pondering if by default can be better to use the /etc/sbopkg/sbopkg.conf values (and so just comment out the three REPO_* lines): that should be the repository the user launching the script should be using already and of which he most probably have a local copy. I noticed this because because I launched it only uncommenting the QUEUEDIR line and ATM I don't have a /var/lib/sbopkg/SBo local directory. But it's really a no-issue... ;) |
Thanks, ponce. I'll merge these changes into the svn copy and take another look at the REPO_ variables issue. Thanks for testing and for your suggestions and input!
|
Slight tweak to the script to skip packages with an empty REQUIRES= line unless a new SKIP_EMPTY variable is uncommented. Probably makes no sense to create queuefiles for packages with no dependencies in most cases.
|
nice, here I was clearing after the ones where $(cat $i | wc -l)=1 but it's if they don't get created at all it's one step further :)
maybe they could be useful for an eventual queuefile parser that will rely on a complete *.sqf database, but I think such software doesn't exists yet... ;) |
All times are GMT -5. The time now is 01:13 PM. |