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
Beispiel #3
0
def bulk_process(name, version, timestamp, action, matches):
    package = PyPIPackage(name)
    package.process(bulk=True)
Beispiel #4
0
def remove_file(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.remove_files(*matches.groups())
Beispiel #5
0
def remove(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.delete()
Beispiel #6
0
def process(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.process()
Beispiel #7
0
def fetch_server_key(package):
    p = PyPIPackage(package)
    p.verify_and_sync_pages()
Beispiel #8
0
def bulk_process(name, version, timestamp, action, matches):
    package = PyPIPackage(name)
    package.process(bulk=True)
Beispiel #9
0
def remove_file(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.remove_files(*matches.groups())
Beispiel #10
0
def remove(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.delete()
Beispiel #11
0
def process(name, version, timestamp, action, matches):
    package = PyPIPackage(name, version)
    package.process()
Beispiel #12
0
def fetch_server_key(package):
    p = PyPIPackage(package)
    p.verify_and_sync_pages()