- isdeb || return 0
- local archive expression pri name highpri shortest
- local policy="${1:-$(apt-cache policy)}" || return $?
- # a = archive
- # n = codename
- # o = origin
- # c = component (licensing component)
- # l = label (Debian{,-Security,-Updates})
- local d=$(distro-name)
- # goto b for archive lines we are interested in, a for lines we arent
- # print priority + archive name. priority is in
- # the previous line from the archive line.
- # case insensitive, because $d is lower and we are matching with first char upper
- read -rd '' expression <<EOF ||:
+ isdeb || return 0
+ local archive expression pri name highpri shortest
+ local policy="${1:-$(apt-cache policy)}" || return $?
+ # a = archive
+ # n = codename
+ # o = origin
+ # c = component (licensing component)
+ # l = label (Debian{,-Security,-Updates})
+ local d=$(distro-name)
+ # goto b for archive lines we are interested in, a for lines we arent
+ # print priority + archive name. priority is in
+ # the previous line from the archive line.
+ # case insensitive, because $d is lower and we are matching with first char upper
+ read -rd '' expression <<EOF ||: