diff options
author | 2010-08-08 13:35:55 +0200 | |
---|---|---|
committer | 2010-08-08 13:35:55 +0200 | |
commit | ce7d4bcb167b5be9ccd927f1b8f25f36b12f57e5 (patch) | |
tree | 094466af2b7a5d1e92a492c4557305473c72984a | |
parent | Even better multiline string syntax (diff) | |
download | g-cran-ce7d4bcb167b5be9ccd927f1b8f25f36b12f57e5.tar.gz g-cran-ce7d4bcb167b5be9ccd927f1b8f25f36b12f57e5.tar.bz2 g-cran-ce7d4bcb167b5be9ccd927f1b8f25f36b12f57e5.zip |
Crap, it just doesn't work
-rw-r--r-- | g_common/g_common.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py index 87341ea..269ea15 100644 --- a/g_common/g_common.py +++ b/g_common/g_common.py @@ -186,10 +186,7 @@ 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>\n") + 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>\n") metadata_file.close() if generate_manifest: populate_manifest(os.path.join(ebuild_dir,'Manifest'),ebuild_dir) |