Skip to content
Snippets Groups Projects
Commit ce279908 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Add script used to import batches of pkgs from germinate files

parent a0307ce4
No related branches found
No related tags found
1 merge request!243Draft: Add script used to import batches of pkgs from germinate files
Pipeline #892892 passed with warnings
Pipeline: apertis-infrastructure

#892894

    Pipeline: apertis-infrastructure

    #892893

      #!/bin/sh
      #
      # Copyright © 2024 Collabora Ltd.
      #
      # SPDX-License-Identifier: MPL-2.0
      # This Source Code Form is subject to the terms of the Mozilla Public
      # License, v. 2.0. If a copy of the MPL was not distributed with this
      # file, you can obtain one at http://mozilla.org/MPL/2.0/.
      #
      # Arguments
      # -l : Germinate list of packages to import (i.e. report/target-keep.txt)
      set -eu
      NEW_DEBIAN_RELEASE=trixie
      CUR_DEBIAN_RELEASE=bookworm
      while getopts 'l:' opt
      do
      case "$opt" in
      l)
      LIST=$OPTARG
      ;;
      esac
      done
      echo "Processing the germinate list ${LIST}..."
      while read pkg; do
      echo "... processing the source package '$pkg'"
      ./create-branches --filter pkg/${pkg} --branch-prefix debian --new-release ${NEW_DEBIAN_RELEASE} --base-release ${CUR_DEBIAN_RELEASE} --keep-default-branch
      ./create-branches --filter pkg/${pkg} --branch-prefix upstream --new-release ${NEW_DEBIAN_RELEASE} --base-release ${CUR_DEBIAN_RELEASE} --keep-default-branch
      ./manage-repo trigger-pipeline ${pkg} debian/${NEW_DEBIAN_RELEASE}
      done <${LIST}
      echo "The germinate list ${LIST} have been processed!"
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Finish editing this message first!
      Please register or to comment