From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 11 Nov 2020 19:30:39 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20201111163039.GE9029@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [devel] Q: duplicate npm() self-provides X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2020 16:30:40 -0000 Archived-At: List-Archive: List-Post: 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