summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-03-20 17:09:05 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2008-03-21 20:13:06 -0700
commit4d372337c4882970a76ead76f9e2e02124429577 (patch)
tree24a8028c391585d248540f3dff0e9bae5290ce39 /distfiles-indexer.py
parentInitial version (diff)
downloaddistindex-4d372337c4882970a76ead76f9e2e02124429577.tar.gz
distindex-4d372337c4882970a76ead76f9e2e02124429577.tar.bz2
distindex-4d372337c4882970a76ead76f9e2e02124429577.zip
Alter the fields slightly.
Diffstat (limited to 'distfiles-indexer.py')
-rwxr-xr-xdistfiles-indexer.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/distfiles-indexer.py b/distfiles-indexer.py
index 0aeaa36..5351a04 100755
--- a/distfiles-indexer.py
+++ b/distfiles-indexer.py
@@ -56,9 +56,15 @@ class ArchiveInfo:
def write_header(self):
self.out_fd.write("File-dist-name: %s\n" % (self.basename))
self.out_fd.write("File-dist-size: %s\n" % (self.filesize))
- self.out_fd.write("File-dist-present: True\n")
+ self.out_fd.write("File-dist-isdistfile: 1\n")
self.out_fd.write("File-dist-origin: %s\n" % (self.url))
- #self.out_fd.write("File-dist-ebuild: %s\n" % (self.ebuild))
+ #self.out_fd.write("File-dist-cpv: %s\n" % (self.cpv))
+ #self.out_fd.write("File-dist-cat: %s\n" % (self.cat))
+ #self.out_fd.write("File-dist-pn: %s\n" % (self.pn))
+ #self.out_fd.write("File-dist-pv: %s\n" % (self.pv))
+ #self.out_fd.write("File-dist-pr: %s\n" % (self.pr))
+ #self.out_fd.write("File-dist-pf: %s\n" % (self.pf))
+ #self.out_fd.write("File-dist-cpv: %s\n" % (self.cpv))
self.out_fd.write("File-dist-mtime: %s\n" %(self.mtime))
distfile = open(self.filename)