Bug 32434 - apt-repo can't rm p8 (uncommented from apt-conf-branch)
Summary: apt-repo can't rm p8 (uncommented from apt-conf-branch)
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: apt-repo (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-25 20:25 MSK by Ivan Zakharyaschev
Modified: 2019-05-20 17:17 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2016-08-25 20:25:07 MSK
I've uncommented the http sources from apt-conf0-branch, and apt-repo can't rm them. Perhaps, that's because they use [p8], and not [updates]:

[root@sogoserver etc]# apt-repo
[root@sogoserver etc]# emacs apt/sources.list.d/alt.list 
[root@sogoserver etc]# apt-repo 
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64 classic
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64-i586 classic
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/noarch classic
[root@sogoserver etc]# apt-get update
Get:1 http://ftp.altlinux.org p8/branch/x86_64 release [896B]
Get:2 http://ftp.altlinux.org p8/branch/x86_64-i586 release [555B]
Get:3 http://ftp.altlinux.org p8/branch/noarch release [691B]
Fetched 2142B in 0s (13,8kB/s)
Hit http://ftp.altlinux.org p8/branch/x86_64/classic pkglist
Hit http://ftp.altlinux.org p8/branch/x86_64/classic release
Hit http://ftp.altlinux.org p8/branch/x86_64-i586/classic pkglist
Hit http://ftp.altlinux.org p8/branch/x86_64-i586/classic release
Hit http://ftp.altlinux.org p8/branch/noarch/classic pkglist
Hit http://ftp.altlinux.org p8/branch/noarch/classic release
Reading Package Lists... Done
Building Dependency Tree... Done
[root@sogoserver etc]# apt-repo rm p8
[root@sogoserver etc]# apt-repo 
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64 classic
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64-i586 classic
rpm [p8] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/noarch classic
[root@sogoserver etc]# rpm -q apt-repo
apt-repo-1.3.7-alt1
[root@sogoserver etc]# rpm -q apt-conf-branch
apt-conf-branch-8.0.0-alt2
[root@sogoserver etc]# 

[root@sogoserver etc]# git revert HEAD --no-edit
[master 31323c9] Revert "APT p8 sources uncommented (as before, but without debuginfo) to test apt-repo"
[root@sogoserver etc]# apt-repo
[root@sogoserver etc]# apt-repo add p8
[root@sogoserver etc]# apt-repo
rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64 classic
rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/noarch classic
rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux p8/branch/x86_64-i586 classic
[root@sogoserver etc]# apt-get update
Get:1 http://ftp.altlinux.org p8/branch/x86_64 release [896B]
Get:2 http://ftp.altlinux.org p8/branch/noarch release [691B]
Get:3 http://ftp.altlinux.org p8/branch/x86_64-i586 release [555B]
Fetched 2142B in 0s (36,4kB/s)
Hit http://ftp.altlinux.org p8/branch/x86_64/classic pkglist
Hit http://ftp.altlinux.org p8/branch/x86_64/classic release
Hit http://ftp.altlinux.org p8/branch/noarch/classic pkglist
Hit http://ftp.altlinux.org p8/branch/noarch/classic release
Hit http://ftp.altlinux.org p8/branch/x86_64-i586/classic pkglist
Hit http://ftp.altlinux.org p8/branch/x86_64-i586/classic release
Reading Package Lists... Done
Building Dependency Tree... Done
[root@sogoserver etc]#
Comment 1 Repository Robot 2019-05-20 17:17:29 MSK
apt-repo-1.3.10-alt1 -> sisyphus:

Mon May 20 2019 Andrey Cherepanov <cas@altlinux> 1.3.10-alt1
- Add p9 branch.
- Add --dry-run mode (ALT #35726).
- Support to add archive of branch (ALT #30841).
- Show and remove all non-commented and non-empty sources (ALT #30008).
- Add key [<branch_name>] in addition to [updates] for branch source (ALT #32434).
- Add arepo repository for added file: source.
- Check task existance for apt-repo list task (ALT #34222).
- Set new format only URL contains at least 3 parts.
- Add new command `set` to remove all exising sources and add specified branch.
- Ignore -devel* packages in task operation.