File: check-deps

package info (click to toggle)
paperwork 2.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 166,660 kB
  • sloc: python: 44,775; makefile: 992; sh: 625; xml: 135
file content (22 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

# Check ping command
paperwork-gtk ping

# Check that paperwork command line detects all dependencies
# For that we need to enable the plugin that is disabled by default in Debian
paperwork-json plugins add openpaperwork_core.cmd.chkdeps

dpkgarch=$(dpkg --print-architecture)
if [ "$dpkgarch" = riscv64 ]; then
    LANG=C paperwork-json chkdeps | jq -e '.missing.libreoffice.debian == "libreoffice"'
else
    LANG=C paperwork-json chkdeps | jq -e '.missing == {}'
fi
if [[ "$?" -eq "0" ]]; then
    echo "No missing dependencies"
else
    echo "Missing cli dependencies!"
    paperwork-json chkdeps
    exit 1
fi