Unverified Commit 177e9ee8 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

apache-airflow: remove pcre from build script (#482239)

parents 5d361f1d c89c21a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -310,13 +310,13 @@ buildPythonPackage rec {
  # Updates yarn.lock and package.json
  passthru.updateScript = writeScript "update.sh" ''
    #!/usr/bin/env nix-shell
    #!nix-shell -i bash -p common-updater-scripts curl pcre "python3.withPackages (ps: with ps; [ pyyaml ])" yarn2nix
    #!nix-shell -i bash -p common-updater-scripts curl "python3.withPackages (ps: with ps; [ pyyaml ])" yarn2nix

    set -euo pipefail

    # Get new version
    new_version="$(curl -s https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html |
      pcregrep -o1 'Airflow ([0-9.]+).' | head -1)"
      grep -oE 'Airflow [0-9.]+' | head -1 | grep -oE '[0-9.]+')"
    update-source-version ${pname} "$new_version"

    # Update frontend