1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

Don't break filenames containing spaces, only chop of trailing newlines.

This commit is contained in:
Sascha Peilicke 2012-01-05 14:00:10 +01:00
parent 4e7867e3cd
commit dba42e5aa5

View File

@ -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):