list-rdeps: don't hide old-semver packages
Ximin Luo
3 years ago
74 | 74 | echo "Versions of rdeps of rust-${pkg} in $ARCHIVE, that also exist in $ARCHIVT:" |
75 | 75 | local versions="$(apt_versions "~D^librust-${pkg}~(\+~|-[0-9]~).*-dev$")" |
76 | 76 | printf "%s\n" "$versions" | grep "$ARCHIVE" | while read rdep ver archive; do |
77 | # we're interested in packages in both archives. | |
77 | 78 | if ! printf "%s\n" "$versions" | grep "$ARCHIVT" | grep -qF "$rdep"; then |
78 | # we're only interested in packages in both archives. | |
79 | # if a pkg-ver is not in either archive, this doesn't affect the migration process | |
80 | # | |
81 | # FIXME: actually, this is not true in the case where we are upgrading | |
82 | # X from version A to B in unstable, but we want to keep X-A in testing. | |
83 | # In this case, X-A has to go through unstable first and we are interested | |
84 | # in keeping this installable, so can't continue here... | |
85 | continue | |
79 | local rdepv="$(echo "$rdep" | sed -E -e 's/-[0-9.]+-dev$/-dev/')" | |
80 | # we're also interested in old-semver packages where the main version is in testing, | |
81 | # since this implies that we're interested in trying to migrate the old-semver package | |
82 | if ! printf "%s\n" "$versions" | grep "$ARCHIVT" | grep -qF "$rdepv"; then | |
83 | # if a rdep matches none of these, we're not interested (at this time) in migrating them; | |
84 | # they will show up on `dev/rust-excuses.mk` later in a more obvious way | |
85 | continue | |
86 | fi | |
86 | 87 | fi |
87 | 88 | apt-cache show "${rdep}=${ver}" \ |
88 | 89 | | grep-dctrl -FDepends -e "librust-${pkg}(\+|-[0-9]).*-dev" -sPackage,Version,Depends - \ |