From: Daniel Martí Date: Wed, 5 Mar 2014 12:22:58 +0000 (+0100) Subject: Don't reset a repo if its .fdroidvcs file ends with a newline X-Git-Tag: 0.2~209 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=19c99feb16f1024645f942304a10909cfed04a0a;p=fdroidserver.git Don't reset a repo if its .fdroidvcs file ends with a newline --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 8ef38bb8..a64d29a4 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -250,7 +250,7 @@ class vcs: if os.path.exists(self.local): if os.path.exists(fdpath): with open(fdpath, 'r') as f: - fsdata = f.read() + fsdata = f.read().strip() if fsdata == cdata: writeback = False else: