summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-08-08 11:46:31 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-08-08 11:51:00 +0200
commitb15fb47d6a63487f178c68369c90937ff836feea (patch)
tree355ac27e0ccaf2f5ac1e5cf2bc106bd985382eba
parentSkip empty lines in generate_tree (diff)
downloadg-cran-b15fb47d6a63487f178c68369c90937ff836feea.tar.gz
g-cran-b15fb47d6a63487f178c68369c90937ff836feea.tar.bz2
g-cran-b15fb47d6a63487f178c68369c90937ff836feea.zip
Fix
-rw-r--r--g_common/g_common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py
index ae16145..d660255 100644
--- a/g_common/g_common.py
+++ b/g_common/g_common.py
@@ -186,10 +186,10 @@ def generate_tree(repo_location,generate_manifest,generate_metadata):
os.symlink(ebuild_file,os.path.join(ebuild_dir,package_file))
if generate_metadata:
metadata_file=open(os.path.join(ebuild_dir,'metadata.xml'),'w')
- metadata_file.write("""<?xml version="1.0" encoding="UTF-8"?>\n\
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">\n\
-<pkgmetadata>\n\
-</pkgmetadata>""") #write minimalistic metadata.xml
+ metadata_file.write('''<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>''') #write minimalistic metadata.xml
metadata_file.close()
if generate_manifest:
populate_manifest(os.path.join(ebuild_dir,'Manifest'),ebuild_dir)