diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-22 13:39:15 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-22 14:13:34 -0400 |
commit | 6815d3c595d1a0890474b61b71353532b9202fb1 (patch) | |
tree | cbd683172f78757da76f500dde4a31f3e396aaa8 /src | |
parent | 4e75773f31bd5dd1cbad30296b2a32c38e552ead (diff) | |
download | bcfg2-6815d3c595d1a0890474b61b71353532b9202fb1.tar.gz bcfg2-6815d3c595d1a0890474b61b71353532b9202fb1.tar.bz2 bcfg2-6815d3c595d1a0890474b61b71353532b9202fb1.zip |
fixed determination of repo name from source component name
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Packages/Source.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Packages/Source.py b/src/lib/Server/Plugins/Packages/Source.py index 627ff561d..bd5a2b1a8 100644 --- a/src/lib/Server/Plugins/Packages/Source.py +++ b/src/lib/Server/Plugins/Packages/Source.py @@ -145,9 +145,8 @@ class Source(Bcfg2.Server.Plugin.Debuggable): def get_repo_name(self, url_map): # try to find a sensible name for a repo - if 'components' in url_map and url_map['components']: - # use the first component as the name - rname = url_map['components'][0] + if 'component' in url_map and url_map['component']: + rname = url_map['component'] else: name = None for repo_re in (self.mrepo_re, |