Skip to content

Commit 3bed90b

Browse files
committed
add full_rebuild option for skipping all deps
1 parent 36073dd commit 3bed90b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

vinca/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ def generate_output(pkg_shortname, vinca_conf, distro, version):
188188
return None
189189

190190
pkg_names = resolve_pkgname(pkg_shortname, vinca_conf, distro)
191-
if not pkg_names or pkg_names[0] in vinca_conf["skip_built_packages"]:
191+
if not pkg_names:
192+
return None
193+
194+
if pkg_names[0] in vinca_conf["skip_built_packages"] and vinca_conf.get('full_rebuild', True):
192195
return None
193196

194197
output = {
@@ -882,7 +885,7 @@ def main():
882885
print(f"Selected build number: {selected_bn}")
883886

884887
for _, pkg in repodata.get("packages").items():
885-
if selected_bn is not None:
888+
if selected_bn is not None and vinca_conf.get("full_rebuild", True):
886889
if pkg["build_number"] == selected_bn:
887890
skip_built_packages.add(pkg["name"])
888891
else:

0 commit comments

Comments
 (0)