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

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

    <bug>
          <bug_id>38294</bug_id>
          
          <creation_ts>2020-03-28 17:10:02 +0300</creation_ts>
          <short_desc>некорректно работает apt-repo add</short_desc>
          <delta_ts>2020-04-02 22:05:12 +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>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey">blitzkrieg</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>asy</cc>
    
    <cc>cas</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>188919</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey">blitzkrieg</who>
    <bug_when>2020-03-28 17:10:02 +0300</bug_when>
    <thetext>apt-repo add некорректно добавляет локалльный репозиторий, при этом, даже добавив его руками, на него ругается apt-get update.
Для p9 это тоже справедливо. 
Использовать локальный репозиторий даже прописав его руками не получилось.
Проблема таже, что была с добавлением обычных репозиториев http, что-то там в регулярке которая урл парсит криво.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188924</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-03-28 21:41:11 +0300</bug_when>
    <thetext>Нет примера.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188926</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey">blitzkrieg</who>
    <bug_when>2020-03-28 21:53:50 +0300</bug_when>
    <thetext>А значит нет и бага? Попробуйте добавить, сами увидите.
Я вам на почту его слал.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188932</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-03-30 10:05:07 +0300</bug_when>
    <thetext>В руководстве написано, какие источники принимаются apt-repo. В данном случае:

Absolute Path
     Local directory beginning with ‘/’ added as a hasher(7) repository: with current system architecture and ‘hasher’ component.

           apt-repo add /opt/repo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188937</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey">blitzkrieg</who>
    <bug_when>2020-03-30 10:33:21 +0300</bug_when>
    <thetext>[root@38f9784f92e1 /]#  apt-repo add /opt/repo
[root@38f9784f92e1 /]# cat /etc/apt/sources.list
# Local package resource list for APT goes here.
# To inspect package defined part, see /etc/apt/sources.list.d/*.list

rpm file:// opt/repo/x86_64 hasher


Err file: opt/repo/x86_64/hasher pkglist
  Invalid URI, local URIS must not start with //
Ign file: opt/repo/x86_64/hasher release
Hit http://mirror.yandex.ru p8/branch/x86_64/classic pkglist
Hit http://mirror.yandex.ru p8/branch/x86_64/classic release
Hit http://mirror.yandex.ru p8/branch/x86_64-i586/classic pkglist
Hit http://mirror.yandex.ru p8/branch/x86_64-i586/classic release
Hit http://mirror.yandex.ru p8/branch/noarch/classic pkglist
Hit http://mirror.yandex.ru p8/branch/noarch/classic release
Failed to fetch file://opt/repo/x86_64/base/pkglist.hasher  Invalid URI, local URIS must not start with //</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188949</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-03-30 11:47:08 +0300</bug_when>
    <thetext>apt-repo-1.3.11-alt1 -&gt; sisyphus:

 Mon Mar 30 2020 Andrey Cherepanov &lt;cas@altlinux&gt; 1.3.11-alt1
 - Add new repositories: c8.1, autoimports.p9 and altlinuxclub.p9.
 - Use proxy from APT for network operations (thanks asy@) (ALT #38294).
 - Set optional Arepo ignoring in file /etc/sysconfig/apt-repo (ALT #34167).
 - Fix License tag according to SPDX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188954</commentid>
    <comment_count>6</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2020-03-30 13:25:48 +0300</bug_when>
    <thetext>(In reply to Repository Robot from comment #5)

&gt;  - Use proxy from APT for network operations (thanks asy@) (ALT #38294).

Не тот номер бага</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189042</commentid>
    <comment_count>7</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-04-02 20:07:26 +0300</bug_when>
    <thetext>apt-repo-1.3.11-alt1 -&gt; p9:

 Mon Mar 30 2020 Andrey Cherepanov &lt;cas@altlinux&gt; 1.3.11-alt1
 - Add new repositories: c8.1, autoimports.p9 and altlinuxclub.p9.
 - Use proxy from APT for network operations (thanks asy@) (ALT #38294).
 - Set optional Arepo ignoring in file /etc/sysconfig/apt-repo (ALT #34167).
 - Fix License tag according to SPDX.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>