Beispiel #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
Beispiel #2
0
def test_upload():
    """ Test the upload of a package """
    path = _build_fnord()
    upload(path, 'test')
Beispiel #3
0
def upload(changes, job, gpg, host):
    sign(changes, gpg)
    return dput.upload(changes, host)
Beispiel #4
0
def upload(changes, job, package):
    prepare_binary_for_upload(changes, job)
    return dput.upload(changes, config['dput']['host'])
Beispiel #5
0
def upload(changes, job, gpg, host):
    sign(changes, gpg)
    dput.upload(changes, host)
Beispiel #6
0
#!/usr/bin/env python
# This file is literally not copyrightable.

from dput import upload
import sys

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