Bug 48419

Summary: apt-repo работа с компонентами источников
Product: Sisyphus Reporter: Mezentsev Andrey <dushatv>
Component: apt-repoAssignee: Andrey Cherepanov <cas>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: amakeenk, cas, sysoevas
Version: unstable   
Hardware: x86   
OS: Linux   
Attachments:
Description Flags
Скриншот ошибки none

Description Mezentsev Andrey 2023-11-13 11:40:58 MSK
При работе apt-repo c типом источника branch игнорируются подключенные источники не заканчивающиеся компонентом classic. Например, gostcrypto. 
# apt-repo
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/x86_64 gostcrypto
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/x86_64 classic
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/noarch classic
# apt-repo rm all branch
# apt-repo
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/x86_64 gostcrypto

В тоже время
# apt-repo
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/x86_64 gostcrypto classic
rpm [p10] http://ftp.altlinux.org/pub/distributions/ALTLinux p10/branch/noarch classic
# apt-repo rm all branch
# apt-repo
#

Предлагается исправить подобное поведение, добавив возможность управления средствами apt-repo другими имеющимися компонентами бранчей.
Comment 1 Repository Robot 2024-12-09 12:36:05 MSK
apt-repo-1.4.6-alt1 -> sisyphus:

 Mon Dec 09 2024 Andrey Cherepanov <cas@altlinux> 1.4.6-alt1
 - Add gostcrypto component to branch if it was used (ALT #51886, #48419).
 - Check for existing branch in apt-repo set (ALT #48771)
Comment 2 Aleksandr Sysoev 2024-12-23 17:43:24 MSK
Ошибка по прежнему воспроизводится в версии apt-repo-1.4.6-alt1. (см. скрин error.png)
Comment 3 Aleksandr Sysoev 2024-12-23 17:45:34 MSK
Created attachment 17429 [details]
Скриншот ошибки
Comment 4 Repository Robot 2024-12-26 12:18:32 MSK
apt-repo-1.4.7-alt1 -> sisyphus:

 Thu Dec 26 2024 Andrey Cherepanov <cas@altlinux> 1.4.7-alt1
 - Fix gostcrypto component processing (ALT #48419, #52511).
Comment 5 Alexander Makeenkov 2024-12-27 12:44:47 MSK
Ошибка не исправлена:

# rpm -q apt-repo && apt-repo set Sisyphus && apt-repo
apt-repo-1.4.7-alt1.noarch
rpm [alt] http://ftp.altlinux.org/pub/distributions ALTLinux/Sisyphus/x86_64 classic gostcrypto
rpm [alt] http://ftp.altlinux.org/pub/distributions ALTLinux/Sisyphus/noarch classic
rpm [alt] http://ftp.altlinux.org/pub/distributions ALTLinux/Sisyphus/x86_64-i586 classic

# apt-repo rm all branch && apt-repo 
rpm [alt] http://ftp.altlinux.org/pub/distributions ALTLinux/Sisyphus/x86_64 classic gostcrypto
Comment 6 Alexander Makeenkov 2024-12-27 14:41:05 MSK
Исправлено в 1.4.8-alt1.