mirror of
https://git.yoctoproject.org/git/opkg-utils
synced 2026-05-06 15:16:29 +02:00
opkg-list-fields: Fix common linter warnings
This patch fixes common linter warnings. Signed-off-by: Robert Lehmann <robert.lehmann@sitec-systems.de> Signed-off-by: Alex Stewart <astewart.49c6@gmail.com>
This commit is contained in:
committed by
Alex Stewart
parent
3e3a74d900
commit
a075a43a9d
@@ -3,13 +3,16 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
import sys, opkg
|
||||
import sys
|
||||
import opkg
|
||||
|
||||
|
||||
def usage():
|
||||
sys.stderr.write("%s opk\n" % (sys.argv[0],))
|
||||
sys.exit(-1)
|
||||
sys.stderr.write("%s opk\n" % (sys.argv[0],))
|
||||
sys.exit(-1)
|
||||
|
||||
|
||||
if (len(sys.argv) < 2):
|
||||
usage()
|
||||
usage()
|
||||
|
||||
print(opkg.Package(sys.argv[1]).print(('md5','sha256')))
|
||||
|
||||
Reference in New Issue
Block a user