New versions of portage have a "sourcefile" setting, and the
_native_kwargs function (copy+pasted from actual portage sync
module, which apparently was never needed) is gone.
-# Copyright © 2015 Nick Bowler
+# Copyright © 2015-2016 Nick Bowler
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
'provides': {
'squashmirror-module': {
'name': 'squashmirror',
+ 'sourcefile': 'squashmirror',
'description': __doc__,
'class': 'SquashMirror',
'validate_config': CheckSquashConfig,
-# Copyright © 2015 Nick Bowler
+# Copyright © 2015-2016 Nick Bowler
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
args.extend(['-comp', opts['squash-compression']])
args.extend(opts['squash-extra-opts'].split())
- rc = spawn(args, **portage._native_kwargs(self.spawn_kwargs))
+ rc = spawn(args, **self.spawn_kwargs)
if rc != os.EX_OK:
self.err("command failed: %s" % " ".join(args))
return (rc, False)