summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_tar.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_tar.bbclass')
-rw-r--r--meta/classes/package_tar.bbclass5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass
index 392a4f222e..876cec6cfe 100644
--- a/meta/classes/package_tar.bbclass
+++ b/meta/classes/package_tar.bbclass
@@ -83,15 +83,12 @@ python do_package_tar () {
83 bb.mkdirhier(pkgoutdir) 83 bb.mkdirhier(pkgoutdir)
84 bb.build.exec_func('package_tar_fn', localdata) 84 bb.build.exec_func('package_tar_fn', localdata)
85 tarfn = bb.data.getVar('PKGFN', localdata, 1) 85 tarfn = bb.data.getVar('PKGFN', localdata, 1)
86# if os.path.exists(tarfn):
87# del localdata
88# continue
89 os.chdir(root) 86 os.chdir(root)
90 from glob import glob 87 from glob import glob
91 if not glob('*'): 88 if not glob('*'):
92 bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1))) 89 bb.note("Not creating empty archive for %s-%s-%s" % (pkg, bb.data.getVar('PV', localdata, 1), bb.data.getVar('PR', localdata, 1)))
93 continue 90 continue
94 ret = os.system("tar -czvf %s %s" % (tarfn, '.')) 91 ret = os.system("tar -czf %s %s" % (tarfn, '.'))
95 if ret != 0: 92 if ret != 0:
96 bb.error("Creation of tar %s failed." % tarfn) 93 bb.error("Creation of tar %s failed." % tarfn)
97} 94}