aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roverlay/overlay/pkgdir/metadata/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/roverlay/overlay/pkgdir/metadata/__init__.py b/roverlay/overlay/pkgdir/metadata/__init__.py
index da42307..ba06bc2 100644
--- a/roverlay/overlay/pkgdir/metadata/__init__.py
+++ b/roverlay/overlay/pkgdir/metadata/__init__.py
@@ -137,6 +137,8 @@ class MetadataJob ( object ):
with open ( self.filepath, 'w' ) as fh:
if not mref.write_file ( fh ):
retcode |= self.METADATA_WRITE_ERROR
+ else:
+ retcode |= self.METADATA_NO_PACKAGE
self.last_write_code = retcode
return bool ( retcode == self.METADATA_SUCCESS )
@@ -157,6 +159,6 @@ class MetadataJob ( object ):
if code & self.METADATA_WRITE_ERROR:
yield "write error"
- reasons = list ( self.gen_decode ( self.last_write_code ) )
+ reasons = list ( gen_decode ( self.last_write_code ) )
return reasons if reasons else [ '<unknown>', ]
# --- end of decode_write_errors (...) ---