summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-07-02 09:15:26 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-07-02 09:28:13 +0200
commitc70af1a364466641ef163b64be521042371c2610 (patch)
treefbc36078eeeb6319fd39333534263060eaea6e8f
parentbbd23fcce4ed73ffcbdbfcef598f085cf1daff2c (diff)
downloadNetworkManager-c70af1a364466641ef163b64be521042371c2610.tar.gz
contrib/rh-bkr: ignore '$' characters that are not followed by a variable name
Skip them without substitution.
-rwxr-xr-xcontrib/rh-bkr/bkr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/rh-bkr/bkr.py b/contrib/rh-bkr/bkr.py
index 49d16076ac..5f3c474cae 100755
--- a/contrib/rh-bkr/bkr.py
+++ b/contrib/rh-bkr/bkr.py
@@ -722,7 +722,9 @@ class CmdSubmit(CmdBase):
l = m.group('rest')
m = CmdSubmit.re_subs1.match(l)
if m is None:
- return r + l
+ l = l[1:]
+ r = r + '$'
+ continue
name = m.group('name')
if name == '$':
r = r + '$'