fi
getrawfield() {
- grep --max-count=1 "^<!ENTITY $1 \"" "${2:-$INFO}" | cut -d'"' -f 2
+ awk "/<!ENTITY $1/ {f=NR} f && NR-1==f { print; exit 0 }" RS='"' "${2:-$INFO}"
}
getfield() {
}
case "$1" in
-debian-stable-codename|debian-oldstable-codename|debian-testing-codename)
- getrawfield "${1#*-}" "$VERBATIM"
- ;;
-ubuntu-codename)
+debian-stable-codename|debian-oldstable-codename|debian-testing-codename|ubuntu-codename)
getrawfield "$1" "$VERBATIM"
;;
keyring-package|keyring-filename|keyring-master-filename|keyring-removed-filename|keyring-uri|current-codename)