Bug 30841 - добавить возможность добавить архив
Summary: добавить возможность добавить архив
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: apt-repo (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 11:21 MSK by Sergey Y. Afonin
Modified: 2022-11-01 14:37 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Y. Afonin 2015-03-18 11:21:35 MSK
Синтаксис, например, такой:

apt-repo add arch p7 20140122
Comment 1 Michael Shigorin 2015-03-19 14:24:11 MSK
Синтаксис скорее напрашивается вида <repo>@<date>, например, p7@20140122;
строчки для sisyphus@20150303:

---
rpm [alt] http://ftp.altlinux.org/pub/distributions/archive/sisyphus/date/2015/03/03 x86_64 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/archive/sisyphus/date/2015/03/03 noarch classic
---

Схожей может оказаться хотелка "по заданию":

---
rpm [alt] http://ftp.altlinux.org/pub/distributions/archive/sisyphus/task/archive/_137/141276 x86_64 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/archive/sisyphus/task/archive/_137/141276 noarch classic
---

(здесь 137 = 141276/1024)

Может быть тонкость с daily/ вследствие "свёртки" архива от позадачного до посуточного, при столкновении стоит спросить glebfm@ или ldv@.
Comment 2 Sergey Y. Afonin 2015-03-20 10:33:40 MSK
В общем-то, наверное, не очень принципиально. (In reply to comment #1)

> Синтаксис скорее напрашивается вида <repo>@<date>, например, p7@20140122;
> строчки для sisyphus@20150303:

Может и так. И придусмотреть два варианта дату задать: 20150303 и 2015-03-03.
Comment 3 Sergey Y. Afonin 2015-03-23 09:52:58 MSK
И <repo>@autoimports, до кучи... Хотя, это уже под тему бага не попадает. :-)
Comment 4 Ivan Zakharyaschev 2016-10-28 16:04:26 MSK
(In reply to comment #3)
> И <repo>@autoimports, до кучи... Хотя, это уже под тему бага не попадает. :-)

Поддерживается в 1.3.7: autoimports.p8; в sources.list без подписи. (Я обычно для такого переключения ставил apt-conf-autoimports-sisyphus; не знаю точно, как там с подписью.)


From: Andrey Cherepanov <cas@altlinux.org>
Date: Wed, 8 Jun 2016 08:55:23 +0000 (+0300)
Subject: Support https://www.altlinux.org/Autoimports sources
X-Git-Tag: 1.3.7-alt1~1
X-Git-Url: http://git.altlinux.org/gears/a/apt-repo.git?p=apt-repo.git;a=commitdiff_plain;h=913ef310f80c5d4044f00209d162c634d185ad77

Support https://altlinux.org/Autoimports sources
---

diff --git a/apt-repo b/apt-repo
index 81bd1df..e77b10e 100755
--- a/apt-repo
+++ b/apt-repo
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 # apt-repo -- Manipulate APT repository list
-# $Id: apt-repo,v 1.3.6 2016-06-06 19:21:00 cas Exp $
+# $Id: apt-repo,v 1.3.7 2016-06-08 11:50:00 cas Exp $
 
 # Copyright 2011-2016 by Andrey Cherepanov (cas@altlinux.org)
 # Copyright 2015 by Ivan Zakharyaschev (imz@altlinux.org)
@@ -15,7 +15,7 @@ use strict;
 use warnings;
 
 # Default parameters
-our $VERSION = '1.3.6';
+our $VERSION = '1.3.7';
 
 my $type     = 'rpm';
 my $c_branch = 'classic';
@@ -90,11 +90,14 @@ my %branches  = (
 	'p8'  => [ "$repo_base/p8/branch",  "updates", "classic" ],
 	'sisyphus' => [ "$repo_base/Sisyphus", "alt", "classic" ],
 	'Sisyphus' => [ "$repo_base/Sisyphus", "alt", "classic" ],
-	'altlinuxclub.sisyphus' => [ "http://altlinuxclub.ru/repo/repo_s/",  "", "hasher" ],
-	'altlinuxclub.p7'  => [ "http://altlinuxclub.ru/repo/Repo_P7/", "", "hasher" ],
-	'altlinuxclub.p6'  => [ "http://altlinuxclub.ru/repo/Repo_P6/", "", "hasher" ],
+	'autoimports.p7' => [ "http://ftp.altlinux.ru/pub/distributions/ALTLinux/autoimports/p7", "", "autoimports" ],
+	'autoimports.p8' => [ "http://ftp.altlinux.ru/pub/distributions/ALTLinux/autoimports/p8", "", "autoimports" ],
+	'autoimports.sisyphus' => [ "http://ftp.altlinux.ru/pub/distributions/ALTLinux/autoimports/Sisyphus", "", "autoimports" ],
+	'altlinuxclub.4.0' => [ "http://altlinuxclub.ru/repo/Repo_4/",  "", "hasher" ],
 	'altlinuxclub.p5'  => [ "http://altlinuxclub.ru/repo/Repo_P5/", "", "hasher" ],
-	'altlinuxclub.4.0' => [ "http://altlinuxclub.ru/repo/Repo_4/",  "", "hasher" ]
+	'altlinuxclub.p6'  => [ "http://altlinuxclub.ru/repo/Repo_P6/", "", "hasher" ],
+	'altlinuxclub.p7'  => [ "http://altlinuxclub.ru/repo/Repo_P7/", "", "hasher" ],
+	'altlinuxclub.sisyphus' => [ "http://altlinuxclub.ru/repo/repo_s/",  "", "hasher" ]
 );
 
 # Show usage information
@@ -270,9 +273,11 @@ sub get_url {
Comment 5 Repository Robot 2019-05-20 17:17:30 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.
Comment 6 Sergey Y. Afonin 2022-11-01 10:55:19 MSK
(In reply to Repository Robot from comment #5)

> - Support to add archive of branch (ALT #30841).

А какой, в итоге, синтаксис? В подсказке у 1.4.0-alt1 не вижу.
Comment 7 Sergey Y. Afonin 2022-11-01 11:36:27 MSK
(In reply to Sergey Y. Afonin from comment #6)

> > - Support to add archive of branch (ALT #30841).
> 
> А какой, в итоге, синтаксис? В подсказке у 1.4.0-alt1 не вижу.

А, на https://www.altlinux.org/Apt-repo есть: apt-repo add p9 2020/02/14
Смутило, что, вроде бы, apt-repo set работает как apt-repo add обычно, но не в этом случае.
Comment 8 Andrey Cherepanov 2022-11-01 14:37:55 MSK
(Ответ для Sergey Y. Afonin на комментарий #6)
> (In reply to Repository Robot from comment #5)
> 
> > - Support to add archive of branch (ALT #30841).
> 
> А какой, в итоге, синтаксис? В подсказке у 1.4.0-alt1 не вижу.

man apt-repo

   Branch
     Branch is a named repository consisting of two parts (current system architecture and 'noarch'). By default,
     the official server is used. Full form:

           apt-repo add branch <name of branch> [<archive_date>]

     Keyword ‘branch’ may be omitted. Example:

           apt-repo add p7

     Running
           apt-repo add branch

     without the name of a branch displays all available branch names.  ‘archive_date’ allows to add archive of
     branch. Date of archive should be in form YYYYMMDD or YYYY/MM/DD.