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
parentInitial version (diff)
downloaddistindex-4d372337c4882970a76ead76f9e2e02124429577.tar.gz
distindex-4d372337c4882970a76ead76f9e2e02124429577.tar.bz2
distindex-4d372337c4882970a76ead76f9e2e02124429577.zip
Alter the fields slightly.
-rwxr-xr-xdistfiles-indexer.py10
-rw-r--r--sample.out10
2 files changed, 16 insertions, 4 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)
diff --git a/sample.out b/sample.out
index ec99506..5b0c4f6 100644
--- a/sample.out
+++ b/sample.out
@@ -1,7 +1,13 @@
File-dist-name: 30375-akode-2.0rc1.tar.gz
File-dist-size: 650104
-File-dist-present: True
-File-dist-origin: None
+File-dist-isdistfile: 1
+File-dist-origin: http://www.kde-look.org/content/files/30375-akode-2.0rc1.tar.gz
+File-dist-cat: media-libs
+File-dist-pn: akode
+File-dist-pv: 2.0_rc1
+File-dist-pr: 0
+File-dist-pf: 2.0_rc1
+File-dist-cpv: media-libs/akode-2.0_rc1
File-dist-mtime: 1132760402
File-dist-md5: 9d3f06d36cdcbf3c5f3a57021d2abc4e
File-dist-sha1: f1c7193f3d0f173d19668b67485b973e63f06f20