Skip to content

Commit b0e2d7d

Browse files
committed
pip: Ensure ignore-pkg is used with the correct arguments
1 parent 69e435e commit b0e2d7d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pip/flatpak-pip-generator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ def normalize_name(name: str) -> str:
234234
except ModuleNotFoundError:
235235
sys.exit("Please install the 'tomli' module")
236236

237+
if opts.ignore_pkg and not (opts.requirements_file or opts.pyproject_file):
238+
sys.exit("--ignore-pkg can only be used with requirements or pyproject file")
239+
237240
if opts.yaml:
238241
try:
239242
import yaml

0 commit comments

Comments
 (0)