diff options
author | 2015-11-26 14:09:07 -0500 | |
---|---|---|
committer | 2015-11-26 14:09:07 -0500 | |
commit | 5749ca152e9f48849d59fa795384535caa47d335 (patch) | |
tree | f150419cf5b6ffeca4c44a1cd98302f62f6102dc | |
parent | pmaint digest: default to digesting an entire repo if no target passed (diff) | |
download | pkgcore-5749ca152e9f48849d59fa795384535caa47d335.tar.gz pkgcore-5749ca152e9f48849d59fa795384535caa47d335.tar.bz2 pkgcore-5749ca152e9f48849d59fa795384535caa47d335.zip |
pmaint digest: minor conditionals clean up for arg validation
-rw-r--r-- | pkgcore/scripts/pmaint.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgcore/scripts/pmaint.py b/pkgcore/scripts/pmaint.py index 3865f02a..b6c86c7c 100644 --- a/pkgcore/scripts/pmaint.py +++ b/pkgcore/scripts/pmaint.py @@ -414,13 +414,13 @@ digest_opts.add_argument( @digest.bind_final_check def _digest_validate(parser, namespace): - if namespace.repo is None: - namespace.repo = namespace.domain.all_raw_ebuild_repos - else: + if namespace.repo is not None: if not namespace.target: namespace.target = [namespace.repo.location] - if not namespace.target: - namespace.target = [os.getcwd()] + else: + namespace.repo = namespace.domain.all_raw_ebuild_repos + if not namespace.target: + namespace.target = [os.getcwd()] @digest.bind_main_func |