Bug 24651 - На любое ошибочное значение возвращается srpm
Summary: На любое ошибочное значение возвращается srpm
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: girar-nmu (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 01:35 MSK by Ilya Mashkin
Modified: 2015-11-12 16:51 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Mashkin 2010-11-28 01:35:45 MSK
На любое ошибочное значение возвращается  srpm
Даже если такого пакета нет. Хорошо бы возвращалось "not found"

[oddity@localhost ~]$ girar-get-upload-method xmms
srpm
[oddity@localhost ~]$ girar-get-upload-method иефтлы
srpm
[oddity@localhost ~]$ girar-get-upload-method btanks
srpm
[oddity@localhost ~]$ girar-get-upload-method snort
git
[oddity@localhost ~]$ girar-get-upload-method snortf
srpm
[oddity@localhost ~]$ girar-get-upload-method snortffff
srpm
[oddity@localhost ~]$ girar-get-upload-method fsnortffff
srpm
[oddity@localhost ~]$ girar-get-upload-method fsnfortffff
srpm
[oddity@localhost ~]$ girar-get-upload-method firefox
srpm
[oddity@localhost ~]$ girar-get-upload-method xorg
git


girar-nmu-0.93-alt0.M51.1.i586.rpm
perl-RPM-Source-Editor-0.55-alt2.noarch.rpm
Comment 1 viy 2010-11-28 02:38:16 MSK
сделал вывод в stderr.
 $ ./girar-get-upload-method -b 5.0 -v repocop 
info: repocop is present in both git and srpm build history.
srpm
 $ ./girar-get-upload-method -b 5.1 -v repocop
git
 $ ./girar-get-upload-method repocop11
 $ ./girar-get-upload-method -v repocop11
warning: repocop11 not found at git.altlinux.org.
srpm
Comment 2 viy 2010-11-28 02:46:16 MSK
 $ ./girar-get-upload-method repocop11
warning: repocop11 not found at git.altlinux.org.
srpm