Package list rust-stfu8 / 73f428c
list-rdeps: fix sources.list test Ximin Luo 1 year, 10 months ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1010 ARCHIVE="${ARCHIVE:-unstable}"
1111 ARCHIVT="${ARCHIVT:-testing}"
1212
13 if ! grep "$ARCHIVE" -qR /etc/apt/sources.list /etc/apt/sources.list.d/ || \
14 ! grep "$ARCHIVT" -qR /etc/apt/sources.list /etc/apt/sources.list.d/; then
13 grep_sources_entry() {
14 grep '^deb[^#]*://[^#[:space:]]*[[:space:]]*'"$@"
15 }
16
17 if ! grep_sources_entry "$ARCHIVE" -qR /etc/apt/sources.list /etc/apt/sources.list.d/ || \
18 ! grep_sources_entry "$ARCHIVT" -qR /etc/apt/sources.list /etc/apt/sources.list.d/; then
1519 cat <<-eof
1620 To make this script work, you will need Debian Testing *AND* Debian Unstable
1721 in your sources.list. If you want your system to prefer Debian Testing, be