[yocto] [opkg-utils PATCH 2/2] opkg.py/write_packages_file: call __str__ instead of __repr__

Alejandro del Castillo alejandro.delcastillo at ni.com
Fri May 27 14:26:43 PDT 2016


Commit b9eec00a67f13ad9f9526caf591578b40d73a391 correctly renamed
__repr__to __str__. A call site in write_packages_file was missed.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo at ni.com>
---
 opkg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opkg.py b/opkg.py
index fe6b9e0..2acc469 100644
--- a/opkg.py
+++ b/opkg.py
@@ -533,7 +533,7 @@ class Packages(object):
         names = list(self.packages.keys())
         names.sort()
         for name in names:
-            f.write(self.packages[name].__repr__())
+            f.write(self.packages[name].__str__())
         return    
 
     def keys(self):
-- 
1.9.1




More information about the yocto mailing list