]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_ipk: Minor import tweak + ensure packages regenerated
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Feb 2020 14:06:49 +0000 (14:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Feb 2020 14:08:54 +0000 (14:08 +0000)
The recent opkg-utils change didn't update all the packages since its
marked as ABISAFE (and has to be due to update-alternatives).

Fix a minor import issue to avoid multiple imports of glob which
also causes packages to re-generate.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_ipk.bbclass

index 4f23977032f1c6014959bcaecb7527c84bc2af9b..25d1ab725adb30f15f2907010af833f6af430bd2 100644 (file)
@@ -45,6 +45,7 @@ def ipk_write_pkg(pkg, d):
     import subprocess
     import textwrap
     import collections
+    import glob
 
     def cleanupcontrol(root):
         for p in ['CONTROL', 'DEBIAN']:
@@ -101,8 +102,7 @@ def ipk_write_pkg(pkg, d):
         bb.utils.mkdirhier(pkgoutdir)
         os.chdir(root)
         cleanupcontrol(root)
-        from glob import glob
-        g = glob('*')
+        g = glob.glob('*')
         if not g and localdata.getVar('ALLOW_EMPTY', False) != "1":
             bb.note("Not creating empty archive for %s-%s-%s" % (pkg, localdata.getVar('PKGV'), localdata.getVar('PKGR')))
             return