From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/grss:master commit in: /
Date: Mon, 6 Jul 2015 01:39:23 +0000 (UTC) [thread overview]
Message-ID: <1436146911.743853d076e647b383fd7762168cc708d1f9709a.blueness@gentoo> (raw)
commit: 743853d076e647b383fd7762168cc708d1f9709a
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 6 01:41:51 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Jul 6 01:41:51 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=743853d0
grsup: some bug fixes.
grsup | 32 ++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/grsup b/grsup
index bb5330f..d956af9 100755
--- a/grsup
+++ b/grsup
@@ -95,16 +95,11 @@ def install_kernel(version = 'latest', logfile = CONST.LOGFILE):
def usage(rc=1):
usage = """
-usage: grsup -C
- grsup -k kernel
- grsup [-r|-d] pkg(s)
- grsup -h
-
-flags: -C download all world packages
- : -k kernel version, or 'latest'
- : -r re-emerge the pkgs(s)
- : -d unmerge the pkgs(s)
- : -h print this help file
+usage: grsup [pkg(s)] : update @world or pkg(s) if given
+ grsup [-r|-d] pkg(s) : re-install or delete pkg(s)
+ grsup -C : download all @world pkgs, don't install
+ grsup -k kernel : install 'kernel' version, or 'latest'
+ grsup -h : print this help
"""
print(usage)
sys.exit(rc)
@@ -112,38 +107,39 @@ flags: -C download all world packages
def main():
myaction, myopts, myfiles = parse_opts(sys.argv[1:])
- args = copy.deepcopy(myfiles)
try:
opts, x = getopt(sys.argv[1:], 'Ck:rdh')
except GetoptError:
usage()
+ do_install_kernel = False
if len(opts) == 0:
- args.insert(0, '-gKuDq')
+ args = ['-g', '-K', '-u', '-D', '-q']
if len(myfiles) == 0:
- usage()
+ myfiles = ['@world']
+ args.extend(myfiles)
else:
exclude = 0
- do_install_kernel = False
for o, a in opts:
if o == '-h':
usage(rc=0)
elif o == '-r':
if len(myfiles) == 0 or exclude > 1:
usage()
- args.insert(0, '-gKDq')
+ args = ['-g', '-K', '-D', '-q']
+ args.extend(myfiles)
exclude += 1
elif o == '-d':
if len(myfiles) == 0 or exclude > 1:
usage()
- args.insert(0, '--unmerge')
- args.insert(0, '-q')
+ args = ['-C', '-q']
+ args.extend(myfiles)
exclude += 1
elif o == '-C':
if len(myfiles) > 0:
usage()
- args = ['-gefq', '@world']
+ args = ['-g', '-e', '-f', '-q', '@world']
elif o == '-k':
if len(sys.argv[1:]) != 2:
usage()
next reply other threads:[~2015-07-06 1:39 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 1:39 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-02 22:06 [gentoo-commits] proj/grss:master commit in: / Anthony G. Basile
2015-08-08 20:26 Anthony G. Basile
2015-08-08 17:52 Anthony G. Basile
2015-08-04 21:41 Anthony G. Basile
2015-08-04 19:32 Anthony G. Basile
2015-08-04 19:25 Anthony G. Basile
2015-07-25 22:06 Anthony G. Basile
2015-07-25 15:32 Anthony G. Basile
2015-07-25 1:51 Anthony G. Basile
2015-07-25 1:24 Anthony G. Basile
2015-07-10 21:13 Anthony G. Basile
2015-07-07 12:38 Anthony G. Basile
2015-07-07 0:41 Anthony G. Basile
2015-07-06 19:57 Anthony G. Basile
2015-07-06 19:49 Anthony G. Basile
2015-07-05 23:56 Anthony G. Basile
2015-07-05 16:33 Anthony G. Basile
2015-07-05 16:20 Anthony G. Basile
2015-07-05 16:11 Anthony G. Basile
2015-07-05 15:19 Anthony G. Basile
2015-07-05 12:40 Anthony G. Basile
2015-07-04 14:13 Anthony G. Basile
2015-07-02 16:51 Anthony G. Basile
2015-07-01 18:12 Anthony G. Basile
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1436146911.743853d076e647b383fd7762168cc708d1f9709a.blueness@gentoo \
--to=blueness@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox