~xubuntu-dev/ubuntu-cdimage/xubuntu-base

« back to all changes in this revision

Viewing changes to bin/sign-cdimage

  • Committer: Colin Watson
  • Date: 2015-09-14 07:42:14 UTC
  • Revision ID: cjwatson@canonical.com-20150914074214-6utmkgmobnz5cjvh
Silence some noise from checksum tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import sys
23
23
 
24
24
sys.path.insert(0, os.path.join(sys.path[0], os.pardir, "lib"))
25
 
from cdimage.config import config
 
25
from cdimage.config import Config
26
26
from cdimage.sign import sign_cdimage
27
27
 
28
28
 
29
29
def main():
30
30
    parser = OptionParser("%prog FILE")
31
 
    options, args = parser.parse_args()
 
31
    _, args = parser.parse_args()
32
32
    if not args:
33
33
        parser.error("no file name given")
 
34
    config = Config()
34
35
    for arg in args:
35
36
        if not sign_cdimage(config, arg):
36
37
            break