<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>30841</bug_id>
          
          <creation_ts>2015-03-18 11:21:35 +0300</creation_ts>
          <short_desc>добавить возможность добавить архив</short_desc>
          <delta_ts>2022-11-01 14:37:55 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apt-repo</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
    
    <cc>evg</cc>
    
    <cc>imz</cc>
    
    <cc>mike</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>150753</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-03-18 11:21:35 +0300</bug_when>
    <thetext>Синтаксис, например, такой:

apt-repo add arch p7 20140122</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150768</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-03-19 14:24:11 +0300</bug_when>
    <thetext>Синтаксис скорее напрашивается вида &lt;repo&gt;@&lt;date&gt;, например, 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
---

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

---
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/ вследствие &quot;свёртки&quot; архива от позадачного до посуточного, при столкновении стоит спросить glebfm@ или ldv@.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150777</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-03-20 10:33:40 +0300</bug_when>
    <thetext>В общем-то, наверное, не очень принципиально. (In reply to comment #1)

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

Может и так. И придусмотреть два варианта дату задать: 20150303 и 2015-03-03.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150789</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-03-23 09:52:58 +0300</bug_when>
    <thetext>И &lt;repo&gt;@autoimports, до кучи... Хотя, это уже под тему бага не попадает. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159550</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-10-28 16:04:26 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; И &lt;repo&gt;@autoimports, до кучи... Хотя, это уже под тему бага не попадает. :-)

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


From: Andrey Cherepanov &lt;cas@altlinux.org&gt;
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 = &apos;1.3.6&apos;;
+our $VERSION = &apos;1.3.7&apos;;
 
 my $type     = &apos;rpm&apos;;
 my $c_branch = &apos;classic&apos;;
@@ -90,11 +90,14 @@ my %branches  = (
 	&apos;p8&apos;  =&gt; [ &quot;$repo_base/p8/branch&quot;,  &quot;updates&quot;, &quot;classic&quot; ],
 	&apos;sisyphus&apos; =&gt; [ &quot;$repo_base/Sisyphus&quot;, &quot;alt&quot;, &quot;classic&quot; ],
 	&apos;Sisyphus&apos; =&gt; [ &quot;$repo_base/Sisyphus&quot;, &quot;alt&quot;, &quot;classic&quot; ],
-	&apos;altlinuxclub.sisyphus&apos; =&gt; [ &quot;http://altlinuxclub.ru/repo/repo_s/&quot;,  &quot;&quot;, &quot;hasher&quot; ],
-	&apos;altlinuxclub.p7&apos;  =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_P7/&quot;, &quot;&quot;, &quot;hasher&quot; ],
-	&apos;altlinuxclub.p6&apos;  =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_P6/&quot;, &quot;&quot;, &quot;hasher&quot; ],
+	&apos;autoimports.p7&apos; =&gt; [ &quot;http://ftp.altlinux.ru/pub/distributions/ALTLinux/autoimports/p7&quot;, &quot;&quot;, &quot;autoimports&quot; ],
+	&apos;autoimports.p8&apos; =&gt; [ &quot;http://ftp.altlinux.ru/pub/distributions/ALTLinux/autoimports/p8&quot;, &quot;&quot;, &quot;autoimports&quot; ],
+	&apos;autoimports.sisyphus&apos; =&gt; [ &quot;http://ftp.altlinux.ru/pub/distributions/ALTLinux/autoimports/Sisyphus&quot;, &quot;&quot;, &quot;autoimports&quot; ],
+	&apos;altlinuxclub.4.0&apos; =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_4/&quot;,  &quot;&quot;, &quot;hasher&quot; ],
 	&apos;altlinuxclub.p5&apos;  =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_P5/&quot;, &quot;&quot;, &quot;hasher&quot; ],
-	&apos;altlinuxclub.4.0&apos; =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_4/&quot;,  &quot;&quot;, &quot;hasher&quot; ]
+	&apos;altlinuxclub.p6&apos;  =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_P6/&quot;, &quot;&quot;, &quot;hasher&quot; ],
+	&apos;altlinuxclub.p7&apos;  =&gt; [ &quot;http://altlinuxclub.ru/repo/Repo_P7/&quot;, &quot;&quot;, &quot;hasher&quot; ],
+	&apos;altlinuxclub.sisyphus&apos; =&gt; [ &quot;http://altlinuxclub.ru/repo/repo_s/&quot;,  &quot;&quot;, &quot;hasher&quot; ]
 );
 
 # Show usage information
@@ -270,9 +273,11 @@ sub get_url {</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>181719</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-05-20 17:17:30 +0300</bug_when>
    <thetext>apt-repo-1.3.10-alt1 -&gt; sisyphus:

Mon May 20 2019 Andrey Cherepanov &lt;cas@altlinux&gt; 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 [&lt;branch_name&gt;] 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216756</commentid>
    <comment_count>6</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2022-11-01 10:55:19 +0300</bug_when>
    <thetext>(In reply to Repository Robot from comment #5)

&gt; - Support to add archive of branch (ALT #30841).

А какой, в итоге, синтаксис? В подсказке у 1.4.0-alt1 не вижу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216759</commentid>
    <comment_count>7</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2022-11-01 11:36:27 +0300</bug_when>
    <thetext>(In reply to Sergey Y. Afonin from comment #6)

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

А, на https://www.altlinux.org/Apt-repo есть: apt-repo add p9 2020/02/14
Смутило, что, вроде бы, apt-repo set работает как apt-repo add обычно, но не в этом случае.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>216775</commentid>
    <comment_count>8</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2022-11-01 14:37:55 +0300</bug_when>
    <thetext>(Ответ для Sergey Y. Afonin на комментарий #6)
&gt; (In reply to Repository Robot from comment #5)
&gt; 
&gt; &gt; - Support to add archive of branch (ALT #30841).
&gt; 
&gt; А какой, в итоге, синтаксис? В подсказке у 1.4.0-alt1 не вижу.

man apt-repo

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

           apt-repo add branch &lt;name of branch&gt; [&lt;archive_date&gt;]

     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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>