Bug 15835 - Не получается запустить arepo
Summary: Не получается запустить arepo
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: arepo (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 19:33 MSD by Vitaly Lipatov
Modified: 2008-12-27 11:51 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2008-05-29 19:33:43 MSD
[lav@builder64 Sisyphus]$ cat arepo.conf
origin = ./
flavor = classic
source = i586
target = x86_64
shadow = ./x86_32-our

[lav@builder64 Sisyphus]$ arepo -v arepo.conf
Traceback (most recent call last):
  File "/usr/bin/arepo", line 600, in <module>
    main()
  File "/usr/bin/arepo", line 560, in main
    read_config(args[0])
  File "/usr/bin/arepo", line 50, in read_config
    vars[key] = config[key]
TypeError: string indices must be integers
Comment 1 avm 2008-05-29 23:30:20 MSD
Дело в том, что конфиг -- это документ YAML, и там должны быть двоеточия, а не
знаки равенства. Попробую выдавать какое-нибудь разумное сообщение об ошибке.
Comment 2 Vitaly Lipatov 2008-05-30 10:06:06 MSD
Дело в том, что тогда надо исправить пример в начале файла
/usr/bin/arepo, который вводит в заблуждение:

# For example, with the following configuration:
# * origin = /Sisyphus
# * flavor = classic
# * source = i586
# * target = x86_64 and
# * shadow = ~/i586-biarch-repo
Comment 3 Vitaly Lipatov 2008-06-27 08:21:38 MSD
Работающий пример:

origin : /var/ftp/pub/ALTLinux/Sisyphus/test/
flavor : classic
source : i586
target : x86_64
shadow : /var/ftp/pub/ALTLinux/Sisyphus/test/x86_32-our

packages: >
    libaudio
    glibc-core
    glibc-nss
    glibc-devel
Comment 4 Vitaly Lipatov 2008-12-27 11:51:35 MSK
Запустили, но программа фантастически не соответствует описанию и ожиданиям ;)