Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
syscontainers: do not error out on --system-package=auto and --user
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>

Closes: #767
Approved by: rhatdan
  • Loading branch information
giuseppe authored and rh-atomic-bot committed Mar 22, 2017
1 parent 4396748 commit 8ace799
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Atomic/syscontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ def install(self, image, name):
rpm_preinstalled = None
tmp_dir = None
try:
if self.args.system_package in ['build', 'yes', 'auto']:
if self.args.system_package == 'auto' and self.args.system:
self.args.system_package = 'no'

if self.args.system_package in ['build', 'yes']:
if not self.args.system:
raise ValueError("Only --system can generate rpms")

Expand Down

0 comments on commit 8ace799

Please sign in to comment.