File: dpkg-query

package info (click to toggle)
debian-security-support 1%3A13%2B2025.07.16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: perl: 790; sh: 442; makefile: 107
file content (18 lines) | stat: -rwxr-xr-x 237 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if \
    [ "$1:$2:$3:$4" = '-f:${Version}:-W:dpkg' ] &&
    [ "$DPKG_QUERY_VERSION" ]
then
    cat "$DPKG_QUERY_VERSION"
    exit 0
fi

if [ "$DPKG_QUERY_LIST" ] ; then
    cat "$DPKG_QUERY_LIST"
    exit 0
fi

exit 1