summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2019-05-31 08:42:59 +0000
committerAlejandro del Castillo <alejandro.delcastillo@ni.com>2019-05-31 11:35:53 -0500
commit5163a74a59d54b2a8374414435ece9d542dbd5e2 (patch)
tree6254ac2b89cd4f830280b1d4390f788bcbb890db
parent3d481a9a4565105e5ed53574946b0fabf68da20e (diff)
downloadopkg-utils-5163a74a59d54b2a8374414435ece9d542dbd5e2.tar.gz
opkg-utils-5163a74a59d54b2a8374414435ece9d542dbd5e2.tar.bz2
opkg-utils-5163a74a59d54b2a8374414435ece9d542dbd5e2.zip
opkg-list-fields: fix to print the fields againHEAD0.4.1master
* printing opkg.Package directly doesn't return anything useful now <opkg.Package object at 0x7fd49e9f2780> * we need to call Package.print() function and specify which checksums to print, we can include both md5 and sha256 for opkg-list-fields * it was changed in this commit: commit 601d691dd80ef494aef069017edc5bf80aa883a1 Author: Alejandro del Castillo <alejandro.delcastillo@ni.com> Date: Wed Dec 19 11:40:15 2018 -0600 opkg-make-index: add sha256sum support which replaced the modified __str__ function with print(self, checksum) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
-rwxr-xr-xopkg-list-fields3
1 files changed, 1 insertions, 2 deletions
diff --git a/opkg-list-fields b/opkg-list-fields
index c14a90f..8a5a588 100755
--- a/opkg-list-fields
+++ b/opkg-list-fields
@@ -11,5 +11,4 @@ def usage():
if (len(sys.argv) < 2):
usage()
-print(opkg.Package(sys.argv[1]))
-
+print(opkg.Package(sys.argv[1]).print(('md5','sha256')))