From 8a35b70757ac09cc277237e2028b5504e3ae3f68 Mon Sep 17 00:00:00 2001 From: clime Date: Apr 19 2018 21:04:14 +0000 Subject: fix prev fix --- diff --git a/rpkglib/cli.py b/rpkglib/cli.py index 16ae04a..73d367e 100644 --- a/rpkglib/cli.py +++ b/rpkglib/cli.py @@ -219,9 +219,9 @@ class rpkgClient(cliClient): pass else: print('Auto-packing is deprecated and will be removed in a future release.', file=sys.stderr) - return self.cmd.srpm(target=getattr(self.args, 'target'), - bcond_with=getattr(self.args, 'with'), - bcond_without=getattr(self.args, 'without')) + return self.cmd.srpm(target=getattr(self.args, 'target', None), + bcond_with=getattr(self.args, 'with', []), + bcond_without=getattr(self.args, 'without', [])) def tag(self): self.cmd.dump_spec_only = True