mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Don't reset a repo if its .fdroidvcs file ends with a newline
This commit is contained in:
parent
496d3d1650
commit
19c99feb16
@ -250,7 +250,7 @@ class vcs:
|
|||||||
if os.path.exists(self.local):
|
if os.path.exists(self.local):
|
||||||
if os.path.exists(fdpath):
|
if os.path.exists(fdpath):
|
||||||
with open(fdpath, 'r') as f:
|
with open(fdpath, 'r') as f:
|
||||||
fsdata = f.read()
|
fsdata = f.read().strip()
|
||||||
if fsdata == cdata:
|
if fsdata == cdata:
|
||||||
writeback = False
|
writeback = False
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user