mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
Don't break filenames containing spaces, only chop of trailing newlines.
This commit is contained in:
parent
4e7867e3cd
commit
dba42e5aa5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user