From: Ian Jackson Date: Tue, 4 Apr 2017 23:41:03 +0000 (+0100) Subject: ownsrc fixes X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/commitdiff_plain/eed788f8959bb06e7631f2d2bbb57d0783314727 ownsrc fixes Signed-off-by: Ian Jackson --- diff --git a/.gitignore b/.gitignore index 3b08514..a4deb5d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ data.dump.dbg [tuv] tmp source +srcpkgs diff --git a/hippotatd b/hippotatd index 24aca7c..e9b62b7 100755 --- a/hippotatd +++ b/hippotatd @@ -264,8 +264,8 @@ def start_http(): ssp.logger = partial(log_debug, DBG.OWNSOURCE) ssp.generate() - resource.putChild(b'source', twisted.web.static.File(ssp.output_paths[0])) - resource.putChild(b'srcpkgs', twisted.web.static.File(ssp.output_paths[0])) + resource.putChild(b'source', twisted.web.static.File(ssp.output_paths[0])) + resource.putChild(b'srcpkgs', twisted.web.static.File(ssp.output_paths[1])) reactor.callLater(0.1, (lambda: log.info('hippotatd started', dflag=False))) diff --git a/hippotatlib/ownsource.py b/hippotatlib/ownsource.py index 8ecc7f2..1a294e6 100644 --- a/hippotatlib/ownsource.py +++ b/hippotatlib/ownsource.py @@ -50,7 +50,7 @@ class SourceShipmentPreparer(): s.cwd = os.getcwd() s.find_rune_base = "find -type f -perm -004 \! -path '*/tmp/*'" s.ignores = ['*~', '*.bak', '*.tmp', '#*#', '__pycache__', - '[0-9][0-9][0-9][0-9]-src.cpio'] + '[0-9][0-9][0-9][0-9]-src.tar'] s.rune_shell = ['/bin/bash', '-ec'] s.show_pathnames = True s.download_packages = True @@ -183,7 +183,7 @@ class SourceShipmentPreparer(): find_rune = s.srcdir_find_rune(d) total_rune = s.rune_cpio % find_rune - name = s.new_output_name('src.cpio', infol) + name = s.new_output_name('src.tar', infol) s._dirmap[d] = name fh = s.open_output_fh(name, 'wb')