From dba42e5aa56611c3daf83493bf4d38cbcbb9e662 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 5 Jan 2012 14:00:10 +0100 Subject: [PATCH] Don't break filenames containing spaces, only chop of trailing newlines. --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index e38927c0..ed616627 100644 --- a/osc/core.py +++ b/osc/core.py @@ -2677,7 +2677,7 @@ def store_readlist(dir, name): r = [] if os.path.exists(os.path.join(dir, store, name)): - r = [line.strip() for line in open(os.path.join(dir, store, name), 'r')] + r = [line.rstrip('\n') for line in open(os.path.join(dir, store, name), 'r')] return r def read_tobeadded(dir):