diff options
author | Tim Harder <radhermit@gmail.com> | 2015-11-26 02:26:04 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2015-11-26 02:26:04 -0500 |
commit | d35245a5056b551b1ea821a8e6d7bcb5b6511c5d (patch) | |
tree | ef2b5daaa20d2565ab9eb822ea290a03fee54961 | |
parent | zsh: add forgotten zparseopts char for the repo-stack _repos option (diff) | |
download | pkgcore-d35245a5056b551b1ea821a8e6d7bcb5b6511c5d.tar.gz pkgcore-d35245a5056b551b1ea821a8e6d7bcb5b6511c5d.tar.bz2 pkgcore-d35245a5056b551b1ea821a8e6d7bcb5b6511c5d.zip |
commandline: use repo_id for a choice before falling back to config name
This slightly alters the help output in certain cases, one being that
package.provided is now shown as "provided" in the choice list when an
unknown repo is entered which helps it match the available completion
support.
-rw-r--r-- | pkgcore/util/commandline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgcore/util/commandline.py b/pkgcore/util/commandline.py index 8f727b02..171aa311 100644 --- a/pkgcore/util/commandline.py +++ b/pkgcore/util/commandline.py @@ -317,7 +317,7 @@ class StoreRepoObject(StoreConfigObject): if len(repo.aliases) > 1 and hasattr(repo, 'location'): yield '%s:%s' % (repo.aliases[0], repo.location) else: - yield repo_name + yield getattr(repo, 'repo_id', repo_name) def _load_obj(self, sections, name): if not self.allow_name_lookup or name in sections: |