summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_ipk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r--meta/classes/package_ipk.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 5873f71205..f6797ada9d 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -268,7 +268,7 @@ python do_package_ipk () {
268 controldir = os.path.join(root, 'CONTROL') 268 controldir = os.path.join(root, 'CONTROL')
269 bb.mkdirhier(controldir) 269 bb.mkdirhier(controldir)
270 try: 270 try:
271 ctrlfile = file(os.path.join(controldir, 'control'), 'w') 271 ctrlfile = open(os.path.join(controldir, 'control'), 'w')
272 except OSError: 272 except OSError:
273 bb.utils.unlockfile(lf) 273 bb.utils.unlockfile(lf)
274 raise bb.build.FuncFailed("unable to open control file for writing.") 274 raise bb.build.FuncFailed("unable to open control file for writing.")
@@ -369,7 +369,7 @@ python do_package_ipk () {
369 if not scriptvar: 369 if not scriptvar:
370 continue 370 continue
371 try: 371 try:
372 scriptfile = file(os.path.join(controldir, script), 'w') 372 scriptfile = open(os.path.join(controldir, script), 'w')
373 except OSError: 373 except OSError:
374 bb.utils.unlockfile(lf) 374 bb.utils.unlockfile(lf)
375 raise bb.build.FuncFailed("unable to open %s script file for writing." % script) 375 raise bb.build.FuncFailed("unable to open %s script file for writing." % script)
@@ -380,7 +380,7 @@ python do_package_ipk () {
380 conffiles_str = localdata.getVar("CONFFILES", True) 380 conffiles_str = localdata.getVar("CONFFILES", True)
381 if conffiles_str: 381 if conffiles_str:
382 try: 382 try:
383 conffiles = file(os.path.join(controldir, 'conffiles'), 'w') 383 conffiles = open(os.path.join(controldir, 'conffiles'), 'w')
384 except OSError: 384 except OSError:
385 bb.utils.unlockfile(lf) 385 bb.utils.unlockfile(lf)
386 raise bb.build.FuncFailed("unable to open conffiles for writing.") 386 raise bb.build.FuncFailed("unable to open conffiles for writing.")