[ostree] ostbuild: Stop generating git mirror config
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostbuild: Stop generating git mirror config
- Date: Tue, 13 Mar 2012 14:42:16 +0000 (UTC)
commit addbdb619c43ce1e9700467cd3b92bf8c01e3a81
Author: Colin Walters <walters verbum org>
Date: Thu Mar 8 08:41:32 2012 -0500
ostbuild: Stop generating git mirror config
Nothing's using it right now and it's a little buggy.
src/ostbuild/pyostbuild/builtin_resolve.py | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_resolve.py b/src/ostbuild/pyostbuild/builtin_resolve.py
index 67fbd2c..3f4b566 100755
--- a/src/ostbuild/pyostbuild/builtin_resolve.py
+++ b/src/ostbuild/pyostbuild/builtin_resolve.py
@@ -193,27 +193,6 @@ class OstbuildResolve(builtins.Builtin):
del self.manifest['vcsconfig']
del self.manifest['patches']
- mirror_gitconfig_path = os.path.join(self.mirrordir, 'gitconfig')
- git_mirrordir = os.path.join(self.mirrordir, 'git')
- f = open(mirror_gitconfig_path, 'w')
- find_proc = subprocess.Popen(['find', '-type', 'f', '-name', 'HEAD'],
- cwd=git_mirrordir, stdout=subprocess.PIPE)
- path_to_url_re = re.compile(r'^([^/]+)/([^/]+)/(.+)$')
- for line in find_proc.stdout:
- assert line.startswith('./')
- path = line[2:-6]
- f.write('[url "')
- f.write('file://' + os.path.join(git_mirrordir, path) + '/')
- f.write('"]\n')
- f.write(' insteadOf = ')
- match = path_to_url_re.match(path)
- assert match is not None
- url = urlparse.urlunparse([match.group(1), match.group(2), match.group(3),
- None, None, None])
- f.write(url)
- f.write('/\n')
- print "Generated git mirror config: %s" % (mirror_gitconfig_path, )
-
manifest_architectures = self.manifest['architectures']
del self.manifest['architectures']
for architecture in manifest_architectures:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]