mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Drop "PackageContents" table and references.
We don't even touch source tarballs anymore - except for extracting the PKGBUILD, so this is no longer needed. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
366ea03118
commit
34ac351e82
3 changed files with 1 additions and 40 deletions
|
@ -244,34 +244,6 @@ for p in seen_pkgs.keys():
|
|||
s = "INSERT INTO PackageComments (PackageID, UsersID, Comments, CommentTS) VALUES (%d, %d, '%s', %d);\n" % (seen_pkgs[p], genUID(), fortune, now)
|
||||
out.write(s)
|
||||
|
||||
others = random.randrange(0,3)
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/PKGBUILD" % p,
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
if others == 0:
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/%s.patch" % (p,p),
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
|
||||
elif others == 1:
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/%s.patch" % (p,p),
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/arch.patch" % p,
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
|
||||
elif others == 2:
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/%s.patch" % (p,p),
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/arch.patch" % p,
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
s = "INSERT INTO PackageContents (PackageID, FSPath, FileSize) VALUES (%d, '%s', %d);\n" % (seen_pkgs[p], "/home/aur/incoming/%s/%s.install" % (p,p),
|
||||
random.randrange(0,999))
|
||||
out.write(s)
|
||||
|
||||
if DBUG: print "."
|
||||
|
||||
# Cast votes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue