diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-07-26 05:03:44 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-07-26 05:03:44 -0300 |
commit | 490a0c1f23ca79e4ef8d4f340a4e49fcd856ae10 (patch) | |
tree | 2b05c7765aeab43268a2d6cd7e5116d87ea57083 /scripts | |
parent | more small fixes to the tinderbox, that's broken with the new trac instance. ... (diff) | |
download | g-octave-490a0c1f23ca79e4ef8d4f340a4e49fcd856ae10.tar.gz g-octave-490a0c1f23ca79e4ef8d4f340a4e49fcd856ae10.tar.bz2 g-octave-490a0c1f23ca79e4ef8d4f340a4e49fcd856ae10.zip |
working on the new handling of the live ebuilds. the command line options '--scm' and '--no-scm' works, and the configuration option 'use_scm' as well
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/g-octave | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/scripts/g-octave b/scripts/g-octave index 85bccf3..4c3e2d2 100755 --- a/scripts/g-octave +++ b/scripts/g-octave @@ -311,6 +311,14 @@ def main(): # if we're alive yet, we have a package to install! :D # or a search to do! :P + # check if use said that want the live version in some place + use_scm = conf.use_scm.lower() == 'true' or options.scm + + # if the user said that don't want the live version with --no-scm, + # this is mandatory + if options.no_scm: + use_scm = False + create_overlay(options.force_all) if len(args) > 0: @@ -339,7 +347,12 @@ def main(): log.info('Processing a package: %s' % args[0]) try: - ebuild = Ebuild(args[0], options.force or options.force_all, pkg_manager=pkg_manager) + ebuild = Ebuild( + args[0], # pkg atom + options.force or options.force_all, # force + pkg_manager=pkg_manager, # package manager + scm = use_scm, # want to use the live version? + ) except EbuildException: log.error('Package not found: %s' % args[0]) out.eerror('Package not found: %s' % args[0]) |