示例#1
0
 def handle(self, *args, **options):
     i = 0
     for rf in ReleaseFile.objects.filter(digest="").distinct("release")[:1]:
         print rf.release.package.name, rf.release.version
         p = PyPIPackage(rf.release.package.name, version=rf.release.version)
         p.process(skip_modified=False)
         i += 1
     print "Fixed %d releases" % i
 def handle(self, *args, **options):
     i = 0
     for rf in ReleaseFile.objects.filter(
             digest="").distinct("release")[:10]:
         print rf.release.package.name, rf.release.version
         p = PyPIPackage(rf.release.package.name,
                         version=rf.release.version)
         p.process(skip_modified=False)
         i += 1
     print "Fixed %d releases" % i
示例#3
0
def bulk_process(name, version, timestamp, action, matches):
    package = PyPIPackage(name)
    package.process(bulk=True)
示例#4
0
def remove_file(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.remove_files(*matches.groups())
示例#5
0
def remove(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.delete()
示例#6
0
def process(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.process()
示例#7
0
def fetch_server_key(package):
    p = PyPIPackage(package)
    p.verify_and_sync_pages()
示例#8
0
def bulk_process(name, version, timestamp, action, matches):
    package = PyPIPackage(name)
    package.process(bulk=True)
示例#9
0
def remove_file(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.remove_files(*matches.groups())
示例#10
0
def remove(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.delete()
示例#11
0
def process(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.process()
示例#12
0
def fetch_server_key(package):
    p = PyPIPackage(package)
    p.verify_and_sync_pages()