Commit d208c3b2 authored by Anders Harrisson's avatar Anders Harrisson
Browse files

Merge branch 'master' into 'master'

Update pinning file even without reverse dependencies

See merge request !2
parents 703db257 753e9c81
Pipeline #115572 passed with stages
in 6 minutes and 8 seconds
repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
rev: v0.942
hooks:
- id: mypy
additional_dependencies:
- 'pydantic'
- 'gidgetlab'
- 'types-cachetools'
exclude: (tests/)
language_version: "3.8"
......@@ -22,12 +22,12 @@ async def trigger_reverse_dependencies_pipelines(
reverse_dependencies = util.get_direct_reverse_dependencies(
package_name, str(CONDA_CHANNEL), CONDA_PLATFORM
)
if not reverse_dependencies:
logger.info(f"{package_name} has no reverse dependency. Nothing to do.")
return
if update_pinning:
logger.info(f"Update pinning for {project.name}")
await util.update_pinning(gl, project.id, RECIPE_PINNING_PROJECT_ID)
if not reverse_dependencies:
logger.info(f"{package_name} has no reverse dependency. Nothing to do.")
return
projects = [
await api.find_project(gl, f"{name}-recipe", project.base_namespace)
for name in reverse_dependencies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment