From 85f07b462509789242ac903a68cca61a3c3ecb4a Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer <sebastien.luttringer@smartjog.com> Date: Tue, 18 Oct 2011 16:15:32 +0200 Subject: [PATCH] allow format,description.json,changelog to be writable by user This allow and easy double extracting without needs to delete it before --- installsystems/image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installsystems/image.py b/installsystems/image.py index 2992235..66eba2a 100644 --- a/installsystems/image.py +++ b/installsystems/image.py @@ -170,14 +170,14 @@ class SourceImage(Image): raise Exception("Unable to create tarball %s: %s" % (self.image_name, e)) # add .description.json arrow("Add description.json") - tarball.add_str("description.json", jdescription, tarfile.REGTYPE, 0444) + tarball.add_str("description.json", jdescription, tarfile.REGTYPE, 0644) # add changelog if self.changelog is not None: arrow("Add changelog") - tarball.add_str("changelog", self.changelog.verbatim, tarfile.REGTYPE, 0444) + tarball.add_str("changelog", self.changelog.verbatim, tarfile.REGTYPE, 0644) # add .format arrow("Add format") - tarball.add_str("format", self.format, tarfile.REGTYPE, 0444) + tarball.add_str("format", self.format, tarfile.REGTYPE, 0644) # add parser scripts self._add_scripts(tarball, self.parser_path) # add setup scripts -- GitLab