added fall back if development package is not installed

master
Martin Scheidt 2022-03-11 11:31:08 +01:00
parent 9a7828e059
commit c0ad07f84e
3 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,6 @@
latex-bin latex-bin
## -- direct dependencies ## -- direct dependencies
tikz-trackschematic
pgf pgf
xkeyval xkeyval
etoolbox etoolbox

View File

@ -35,8 +35,5 @@ jobs:
profile-path: ${{ github.workspace }}/.github/tex/profile.minimal.txt profile-path: ${{ github.workspace }}/.github/tex/profile.minimal.txt
packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt
- name: "install tikz-trackschematic"
run: ./build.sh --non-interactive --install-dev
- name: "test tikz-trackschematic" - name: "test tikz-trackschematic"
run: ./build.sh --non-interactive --test --verbose run: ./build.sh --non-interactive --test --verbose

View File

@ -341,12 +341,13 @@ check_trackschematic() {
ls $DEVDIR/tikz-trackschematic-dev.sty >> /dev/null 2>&1 || STATUS=1 ls $DEVDIR/tikz-trackschematic-dev.sty >> /dev/null 2>&1 || STATUS=1
if [ $STATUS = 0 ]; then if [ $STATUS = 0 ]; then
log_note "tikz-trackschematic-dev found" log_note "Package tikz-trackschematic-dev found."
return 0 return 0
fi fi
log_error "Library 'tikz-trackschematic-dev' not found. Be sure to have tikz-trackschematic-dev installed!" log_note "Package 'tikz-trackschematic-dev' not found - using project src/."
exit 1
export TEXINPUTS=.:../src/:$TEXINPUTS
} }
## checks for updated repository ## checks for updated repository