[copr] master: Properly split mock chroot name (86eaef3)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Thu Jan 31 12:06:26 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 86eaef312d1b5528d6c04fe15edbcf2eb0ddef38
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu Jan 31 11:55:02 2013 +0100

    Properly split mock chroot name


>---------------------------------------------------------------

 coprs_frontend/coprs/logic/coprs_logic.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coprs_frontend/coprs/logic/coprs_logic.py b/coprs_frontend/coprs/logic/coprs_logic.py
index 21b2b00..54ae9fe 100644
--- a/coprs_frontend/coprs/logic/coprs_logic.py
+++ b/coprs_frontend/coprs/logic/coprs_logic.py
@@ -221,7 +221,7 @@ class MockChrootsLogic(object):
 
     @classmethod
     def tuple_from_name(cls, user, name):
-        split_name = name.rsplit('-')
+        split_name = name.rsplit('-', 1)
         if len(split_name) < 2:
             raise exceptions.MalformedArgumentException(
                     'Chroot Name doesn\'t contain dash, can\'t determine chroot architecure.')



More information about the copr-devel mailing list