Skip to contentSkip to conversation

opkg-list-fields: fix to print the fields again

PATCH New Martin Jansa 1 participant 1 message May 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opkg-list-fields: fix to print the fields again

* 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 <[email protected]>
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)

---
 opkg-list-fields | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
opkg-list-fields +1 -2
index c14a90f..8a5a588 100755
@@ -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')))
Signature · 1 line
2.17.1