Ejemplo n.º 1
0
def test_double_upload():
    """ Test a double-upload (and force block) """
    path = _build_fnord()
    upload(path, 'test')
    try:
        upload(path, 'test')
        assert True is False
    except UploadException:
        pass
Ejemplo n.º 2
0
def test_upload():
    """ Test the upload of a package """
    path = _build_fnord()
    upload(path, 'test')
Ejemplo n.º 3
0
def upload(changes, job, gpg, host):
    sign(changes, gpg)
    return dput.upload(changes, host)
Ejemplo n.º 4
0
def upload(changes, job, package):
    prepare_binary_for_upload(changes, job)
    return dput.upload(changes, config['dput']['host'])
Ejemplo n.º 5
0
def upload(changes, job, gpg, host):
    sign(changes, gpg)
    dput.upload(changes, host)
Ejemplo n.º 6
0
#!/usr/bin/env python
# This file is literally not copyrightable.

from dput import upload
import sys

upload(sys.argv[1], 'test')