Mercurial > treepkg
comparison enterprise/kdei18n.py @ 28:f7f89548a2a6
kdei18n: put the scripts subdirectory into the .orig.tar.gz
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 14 Mar 2007 18:39:44 +0100 |
parents | 16689c948bbc |
children | 3e610233ccfe 78cf5f6778ec |
comparison
equal
deleted
inserted
replaced
27:206d63ee310e | 28:f7f89548a2a6 |
---|---|
82 run.call(["tar", "cjf", tarball, "-C", pkgbasedir, tarballdir]) | 82 run.call(["tar", "cjf", tarball, "-C", pkgbasedir, tarballdir]) |
83 logging.info("Created kde-i18n-de tarball") | 83 logging.info("Created kde-i18n-de tarball") |
84 return tarball | 84 return tarball |
85 | 85 |
86 def do_package(self): | 86 def do_package(self): |
87 # Create a new kde-i18n-de tarball from current SVN and the base | |
88 # kde-i18n-de tarball. | |
87 pkgbaseversion, pkgbasedir = self.export_sources() | 89 pkgbaseversion, pkgbasedir = self.export_sources() |
88 tarball = self.create_i18n_de_tarball(pkgbasedir, pkgbaseversion) | 90 tarball = self.create_i18n_de_tarball(pkgbasedir, pkgbaseversion) |
89 | 91 |
92 # We have to reuse the same directory when building the | |
93 # orig.tar.gz. However, we need to preserver the scripts | |
94 # sub-directory because it's not needed for the kde-i18n-de | |
95 # tarball but for the .orig.tar.gz. | |
96 pkg_scripts_dir = os.path.join(pkgbasedir, "scripts") | |
97 tmp_scripts_dir = os.path.join(self.work_dir, "scripts") | |
98 os.rename(pkg_scripts_dir, tmp_scripts_dir) | |
90 shutil.rmtree(pkgbasedir) | 99 shutil.rmtree(pkgbasedir) |
91 os.mkdir(pkgbasedir) | 100 os.mkdir(pkgbasedir) |
101 os.rename(tmp_scripts_dir, pkg_scripts_dir) | |
92 | 102 |
93 pkgbasename = self.pkg_basename + "_" + pkgbaseversion | 103 pkgbasename = self.pkg_basename + "_" + pkgbaseversion |
94 origtargz = os.path.join(self.work_dir, | 104 origtargz = os.path.join(self.work_dir, |
95 pkgbasename + ".orig.tar.gz") | 105 pkgbasename + ".orig.tar.gz") |
96 os.rename(tarball, os.path.join(pkgbasedir, | 106 os.rename(tarball, os.path.join(pkgbasedir, |