chiark / gitweb /
ownsrc fixes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 Apr 2017 23:41:03 +0000 (00:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 Apr 2017 23:41:03 +0000 (00:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
hippotatd
hippotatlib/ownsource.py

index 3b08514..a4deb5d 100644 (file)
@@ -2,3 +2,4 @@ data.dump.dbg
 [tuv]
 tmp
 source
+srcpkgs
index 24aca7c..e9b62b7 100755 (executable)
--- 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)))
 
index 8ecc7f2..1a294e6 100644 (file)
@@ -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')