[jhbuild] packagedb: properly terminate manifest files



commit 6686953c870892976c8b8ec3f539250cdeaa19dc
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Jan 3 22:22:11 2015 -0500

    packagedb: properly terminate manifest files
    
    Manifest files are missing the final newline.  Add it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742298

 jhbuild/utils/packagedb.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py
index d80e3b4..e6276a6 100644
--- a/jhbuild/utils/packagedb.py
+++ b/jhbuild/utils/packagedb.py
@@ -119,7 +119,7 @@ class PackageEntry:
                 self.metadata['configure-hash']
         if self.manifest is not None:
             fd = file(os.path.join(self.manifests_dir, self.package + '.tmp'), 'w')
-            fd.write('\n'.join(self.manifest))
+            fd.write('\n'.join(self.manifest) + '\n')
             if hasattr(os, 'fdatasync'):
                 os.fdatasync(fd.fileno())
             else:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]