[devel] Q: duplicate npm() self-provides
Dmitry V. Levin
ldv на altlinux.org
Ср Ноя 11 19:30:39 MSK 2020
Hi,
У нас в репозитории обнаружилось несколько пакетов, которые содержат сразу
две разных версии одного и того же npm(...) в Provides.
Предполагаю, что во всех случаях это ошибки, поскольку сравнения версий в
rpm работают не так, как ожидают люди, когда у пакета больше одной версии.
Кто-нибудь знает, зачем это было сделано?
$ pkglist-query '[%{PROVIDENAME} %{NAME} %{PROVIDEFLAGS:depflags}%{PROVIDEVERSION}\n]' \
Sisyphus/{x86_64,noarch}/base.bloat/pkglist.classic |\
sed -rn -e 's/ \+$//' -e 's/^(npm\([^ ]+) ([^ ]+) ([^ ]+)$/\3 \2 \1/p' |\
sort -k2 |\
uniq -D -f1 |\
sed -rn -e 's/^([^ ]+) ([^ ]+) ([^ ]+)$/\2 \3 \1/p' |\
sort -k2,2 |\
column -t -N 'Package:,Provide Name:,Provide Version:'
Package: Provide Name: Provide Version:
node-nodeunit npm(ansi-regex) =2.1.1
node-nodeunit npm(ansi-regex) =4.1.0
node-sass npm(ansi-regex) =2.1.1
node-sass npm(ansi-regex) =4.1.0
node-sass npm(ansi-styles) =2.2.1
node-sass npm(ansi-styles) =3.2.1
node-sass npm(camelcase) =2.1.1
node-sass npm(camelcase) =5.3.1
node-nodeunit npm(debug) =2.6.9
node-nodeunit npm(debug) =4.1.1
node-nodeunit npm(diff) =1.4.0
node-nodeunit npm(diff) =4.0.2
node-sass npm(find-up) =1.1.2
node-sass npm(find-up) =3.0.0
node-sass npm(is-fullwidth-code-point) =1.0.0
node-sass npm(is-fullwidth-code-point) =2.0.0
node-nodeunit npm(minimist) =0.0.8
node-nodeunit npm(minimist) =1.2.0
node-nodeunit npm(ms) =2.0.0
node-nodeunit npm(ms) =2.1.2
node-sass npm(path-exists) =2.1.0
node-sass npm(path-exists) =3.0.0
node-nodeunit npm(pify) =3.0.0
node-nodeunit npm(pify) =4.0.1
lessjs npm(punycode) =1.4.1
lessjs npm(punycode) =2.1.1
node-nodeunit npm(punycode) =1.4.1
node-nodeunit npm(punycode) =2.1.1
node-nodeunit npm(safe-buffer) =5.1.2
node-nodeunit npm(safe-buffer) =5.2.0
node-nodeunit npm(semver) =5.7.1
node-nodeunit npm(semver) =6.3.0
node-nodeunit npm(source-map) =0.5.7
node-nodeunit npm(source-map) =0.6.1
node-sass npm(string-width) =1.0.2
node-sass npm(string-width) =3.1.0
node-nodeunit npm(strip-ansi) =3.0.1
node-nodeunit npm(strip-ansi) =5.2.0
node-sass npm(strip-ansi) =3.0.1
node-sass npm(strip-ansi) =5.2.0
node-nodeunit npm(supports-color) =5.5.0
node-nodeunit npm(supports-color) =6.1.0
node-nodeunit npm(tap-parser) =5.4.0
node-nodeunit npm(tap-parser) =7.0.0
node-nodeunit npm(yallist) =2.1.2
node-nodeunit npm(yallist) =3.1.1
--
ldv
Подробная информация о списке рассылки Devel