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:
parent
4e7867e3cd
commit
dba42e5aa5
@ -2677,7 +2677,7 @@ def store_readlist(dir, name):
|
|||||||
|
|
||||||
r = []
|
r = []
|
||||||
if os.path.exists(os.path.join(dir, store, name)):
|
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
|
return r
|
||||||
|
|
||||||
def read_tobeadded(dir):
|
def read_tobeadded(dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user