Note about why dependency calculations were broken
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 5 Oct 2023 13:04:26 +0000 (14:04 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 5 Oct 2023 13:04:26 +0000 (14:04 +0100)
Dependency calculation was only being done partially as the list of
fedora source packages was incomplete.  After examination of the log I
saw:

  + echo 'ocaml-pcre2: package is not checked out locally'
  ocaml-pcre2: package is not checked out locally
  + exit 1

For some reason this did not cause the function (and goals) to exit.
Is it a bug in goals?  Anyway make the error more prominent at least.

Goalfile

index 4c18a32..e689a21 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -241,7 +241,8 @@ pure function get-source-packages () returning strings = {
         elif [ -f $pkg/%fedora-branch/dead.package ]; then
             echo "WARNING: $pkg: is a dead package, ignored" >&2
         else
-            echo "$pkg: package is not checked out locally" >&2
+            echo "ERROR: $pkg: package is not checked out locally" >&2
+            # This does NOT exit the script, why???
             exit 1
         fi
     done