From 185c05bf9dd2e4859c0911920324db79f0ef293e Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Apr 10 2014 09:52:38 +0000 Subject: be less strict in parsing fas/copr-name and allow dash and other characters which are not part of \w --- diff --git a/cli/copr_cli/subcommands.py b/cli/copr_cli/subcommands.py index 09e34e4..a204000 100644 --- a/cli/copr_cli/subcommands.py +++ b/cli/copr_cli/subcommands.py @@ -210,7 +210,7 @@ def build(copr, pkgs, memory, timeout, wait=True, result=None, chroots=None): username = user["username"] # if you specify copr as username/foo, retrieve and cut username - m = re.match(r"(\w+)/(\w+)", copr) + m = re.match(r"(.+)/(.+)", copr) if m: username = m.group(1) copr = m.group(2)