| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -444,10 +444,19 @@ else | |||
| 444 | 444 | # use the PR diff file to find which items have been added to this particular easystack file | |
| 445 | 445 | # and dump that to a temporary easystack file that we can use to fetch the sources for only these added items | |
| 446 | 446 | awk -v file="${easystack_file}" ' | |
| 447 | - BEGIN { print "easyconfigs:" } | ||
| 448 | 447 | /^diff --git / { found=0 } | |
| 449 | 448 | $0 == "+++ b/" file { found=1; next } | |
| 450 | - found && /^\+/ && !/^\+\+\+/ { sub(/^\+/, ""); print } | ||
| 449 | + found && /^\+/ && !/^\+\+\+/ { | ||
| 450 | + sub(/^\+/, "") | ||
| 451 | + additions = additions $0 "\n" | ||
| 452 | + count++ | ||
| 453 | + } | ||
| 454 | + END { | ||
| 455 | + if (count) | ||
| 456 | + printf "easyconfigs:\n%s", additions | ||
| 457 | + else | ||
| 458 | + print "easyconfigs: []" | ||
| 459 | + } | ||
| 451 | 460 | ' "${diff_file}" >> ${easystack_additions} | |
| 452 | 461 | echo_green "Downloading sources for added items in easystack file ${easystack_file} using eb ${fetch_option}..." | |
| 453 | 462 | echo '(note: this step can be skipped by setting $EESSI_SKIP_FETCH_EASYSTACK_SOURCES to a non-empty value)' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments