[PATCH 5/6] Handle negative sizes correctly.
David Lehman
dlehman at redhat.com
Tue Jul 16 17:11:30 UTC 2013
---
blivet/size.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/size.py b/blivet/size.py
index 5f83d5f..6c3eb90 100644
--- a/blivet/size.py
+++ b/blivet/size.py
@@ -75,7 +75,7 @@ def _parseSpec(spec):
if not spec:
raise ValueError("invalid size specification", spec)
- m = re.match(r'([0-9.]+)\s*([A-Za-z]*)$', spec.strip())
+ m = re.match(r'(-?\s*[0-9.]+)\s*([A-Za-z]*)$', spec.strip())
if not m:
raise ValueError("invalid size specification", spec)
--
1.8.1.4
More information about the anaconda-patches
mailing list