diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-23 15:05:28 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-23 15:12:55 -0400 |
commit | be5abd82a35ba4acb8f84edf2f6c1dfae7c81325 (patch) | |
tree | 0fa8d3ba7b95cb0079c26ef4835e13c15a6816b3 /src/lib | |
parent | 547b2b11d7b2325935030ac2f8f04fee2778d577 (diff) | |
download | bcfg2-be5abd82a35ba4acb8f84edf2f6c1dfae7c81325.tar.gz bcfg2-be5abd82a35ba4acb8f84edf2f6c1dfae7c81325.tar.bz2 bcfg2-be5abd82a35ba4acb8f84edf2f6c1dfae7c81325.zip |
fix duplicate repo name infinite loop
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Yum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py index f20190ea0..cba3373c1 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py @@ -179,7 +179,7 @@ class YumCollection(Collection): config.add_section(reponame) added = True except ConfigParser.DuplicateSectionError: - match = re.match("-(\d)", reponame) + match = re.search("-(\d+)", reponame) if match: rid = int(match.group(1)) + 1 else: |