Bug 23320 - Please add gear-import utility
Summary: Please add gear-import utility
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gear (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-11 16:47 MSD by Sir Raorn
Modified: 2010-04-13 01:41 MSD (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sir Raorn 2010-04-11 16:47:30 MSD
Всё-таки хотелось бы увидеть в пакете то что сейчас находится в бранче next.  Кстати, у меня в master есть маленькое исправление для gear-import.
Comment 1 Dmitry V. Levin 2010-04-12 20:05:10 MSD
С тем, что сейчас находится в бранче next, есть одна проблема:
gear-update не работает.

$ gear-update libpcap-1.1.0.tar.gz libpcap
gear-update: /path/to/libpcap/libpcap-1.1.0.tar.gz: unrecognized source type: 

Проблема в том, что новый gear-update вместе с поддержкой плагинов утратил способность работать не с полным путём, а через $PATH.
Comment 2 Alexey Gladkov 2010-04-12 20:19:22 MSD
(В ответ на комментарий №1)
> Проблема в том, что новый gear-update вместе с поддержкой плагинов утратил
> способность работать не с полным путём, а через $PATH.

Хорошо. Посмотрю.
Comment 3 Dmitry V. Levin 2010-04-12 20:43:20 MSD
(In reply to comment #1)
> С тем, что сейчас находится в бранче next, есть одна проблема:

Нет, есть ещё одна проблема:

+ make check
make: Entering directory `/usr/src/RPM/BUILD/gear-1.7.0'
cd tests && ./run
[done] (gear_import_parse_custom_cwd) 
[done] (gear_import_parse_simple_cwd) 
gear-import: Unable to parse archive: foo-1.0
[done] (gear_import_update_cwd) 

Как-то плохо сочетается fatal error от gear-import и done в тестах.
Comment 4 Dmitry V. Levin 2010-04-12 20:52:18 MSD
(In reply to comment #2)
> (В ответ на комментарий №1)
> > Проблема в том, что новый gear-update вместе с поддержкой плагинов утратил
> > способность работать не с полным путём, а через $PATH.
> 
> Хорошо. Посмотрю.

Я запушил коммит 1.6.0-alt1-26-g142b80a
Comment 5 Sir Raorn 2010-04-12 23:34:28 MSD
(In reply to comment #3)
> Нет, есть ещё одна проблема:
> gear-import: Unable to parse archive: foo-1.0
> Как-то плохо сочетается fatal error от gear-import и done в тестах.
Тут всё правильно:

assertFalse "should fail to update non-existant directory without --create" \
  "gear_import_update_run_command .git/.work/foo-1.0.tar.gz .git/.work/foo-1.1.tar.gz .git/.work/foo-1.2.tar.gz"

Правда диагностика действительно кривовата.
Comment 6 Dmitry V. Levin 2010-04-13 00:28:32 MSD
(In reply to comment #5)
> Тут всё правильно:
> 
> assertFalse "should fail to update non-existant directory without --create" \
>   "gear_import_update_run_command .git/.work/foo-1.0.tar.gz
> .git/.work/foo-1.1.tar.gz .git/.work/foo-1.2.tar.gz"
> 
> Правда диагностика действительно кривовата.

Предлагаешь оставить всё как есть (1.6.0-alt1-27-g90b5862)?
Comment 7 Sir Raorn 2010-04-13 00:56:40 MSD
Ну я попытался что-то поправить в 1.6.0-alt1-28-ge40f91d...
Comment 8 Repository Robot 2010-04-13 01:41:53 MSD
gear-1.7.0-alt1 -> sisyphus:

* Mon Apr 12 2010 Dmitry V. Levin <ldv@altlinux> 1.7.0-alt1

- Bugfixes:
  + manpages: Quoted dash symbols in command and option names
    (closes: #22526).
- Improvements:
  + Documented git-config options (Alexey Froloff).
  + gear-update:
    - Implemented plugins support (Alexey Gladkov, Alexey Froloff).
    - Added rubygems support (Alexey Froloff).
    - Added tests (Alexey Froloff).
  + gear-import: New utility
    (Alexey Gladkov, Alexey Froloff; closes: #23320).