# Path: elbepack/egpg.py
# def sign_file(fname, fingerprint):
#     outfilename = fname + '.gpg'
#     sign(fname, outfilename, fingerprint)


from elbepack.egpg import sign_file
# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2014 Stefan Gast <stefan.gast@linutronix.de>
# Copyright (c) 2014-2015, 2017 Manuel Traut <manut@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later



def run_command(argv):
    if len(argv) != 2:
        print("Wrong number of arguments.")
        print("Please pass the name of the file to sign "
              "and a valid gnupg fingerprint.")
        return

# Path: elbepack/egpg.py
# def sign_file(fname, fingerprint):
#     outfilename = fname + '.gpg'
#     sign(fname, outfilename, fingerprint)


# Path: elbepack/commands/sign.py
from elbepack.egpg import sign_file

# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2014 Stefan Gast <stefan.gast@linutronix.de>
# Copyright (c) 2014-2015, 2017 Manuel Traut <manut@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later



def run_command(argv):
    if len(argv) != 2:
        print("Wrong number of arguments.")
        print("Please pass the name of the file to sign "
              "and a valid gnupg fingerprint.")
        return

    sign_file(argv[0], argv[1])