Skip to content

Commit 200ed5e

Browse files
committed
Skip packages not in snapshot when snapshot specified
1 parent 1f89b95 commit 200ed5e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

vinca/distro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_released_repo(self, pkg_name):
7474

7575
def check_package(self, pkg_name):
7676
if pkg_name in self._distro.release_packages:
77-
return True
77+
return self.snapshot is None or pkg_name in self.snapshot
7878
elif pkg_name in self.build_packages:
7979
return True
8080
else:

vinca/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ def get_pkg(pkg_name):
547547
def generate_outputs_version(distro, vinca_conf):
548548
outputs = []
549549
for pkg_shortname in vinca_conf["_selected_pkgs"]:
550+
if not distro.check_package(pkg_shortname):
551+
print(f"Could not generate output for {pkg_shortname}")
552+
continue
553+
550554
version = distro.get_version(pkg_shortname)
551555
output = generate_output(pkg_shortname, vinca_conf, distro, version)
552556
if output is not None:

0 commit comments

Comments
 (0)