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

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

    <bug>
          <bug_id>40137</bug_id>
          
          <creation_ts>2021-06-01 20:55:02 +0300</creation_ts>
          <short_desc>triple forward slashes are incorrectly treated</short_desc>
          <delta_ts>2021-06-02 11:13: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>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></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="Pavel Nakonechnyi">zorg1331</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>andy</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>198847</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Nakonechnyi">zorg1331</who>
    <bug_when>2021-06-01 20:55:02 +0300</bug_when>
    <thetext>Нельзя добавить локальный репозиторий используя apt-repo. Так как из трех слешей один стирается, а два для &quot;файлового&quot; пути некорректны.

См. следующее:

 # apt-repo rm all
 # apt-repo add &apos;rpm [alt] file:///mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo add &apos;rpm [alt] copy:///mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo add &apos;rpm [alt] http:///mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo add &apos;rpm [alt] ftp:///mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo add &apos;rpm [alt] rsync:///mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo add &apos;rpm [alt] cdrom:///mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo
 rpm [alt] file:// mnt/data/Sisyphus/x86_64 classic
 rpm [alt] copy:// mnt/data/Sisyphus/x86_64 classic
 rpm [alt] http:// mnt/data/Sisyphus/x86_64 classic
 rpm [alt] ftp:// mnt/data/Sisyphus/x86_64 classic
 rpm [alt] rsync:// mnt/data/Sisyphus/x86_64 classic
 rpm [alt] cdrom:// mnt/data/Sisyphus/x86_64 classic
 
 # apt-repo rm all
 # apt-repo add &apos;rpm [alt] file://mnt/data Sisyphus/x86_64 classic&apos;
 # apt-get update
 Ошибка file://mnt Sisyphus/x86_64 release
   Invalid URI, local URIS must not start with //
 W: Release files for some repositories could not be retrieved or authenticated.  Such repositories are being ignored.
 E: Failed to fetch file://mnt/data/Sisyphus/x86_64/base/release  Invalid URI,  local URIS must not start with //
 E: Some index files failed to download. They have been ignored, or old ones used instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198849</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Vasilyev">andy</who>
    <bug_when>2021-06-01 23:58:24 +0300</bug_when>
    <thetext>  Попробуйте

  apt-repo add &apos;rpm [alt] copy:/mnt/data Sisyphus/x86_64 classic&apos;

  (т.е. в sources.list должно получиться

  rpm [alt] copy:/mnt/data Sisyphus/x86_64 classic

  ). С file: аналогично.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198850</commentid>
    <comment_count>2</comment_count>
    <who name="Pavel Nakonechnyi">zorg1331</who>
    <bug_when>2021-06-02 00:06:15 +0300</bug_when>
    <thetext>(Ответ для Andrew Vasilyev на комментарий #1)
&gt;   Попробуйте
&gt; 
&gt;   apt-repo add &apos;rpm [alt] copy:/mnt/data Sisyphus/x86_64 classic&apos;
&gt; 
&gt;   (т.е. в sources.list должно получиться
&gt; 
&gt;   rpm [alt] copy:/mnt/data Sisyphus/x86_64 classic
&gt; 
&gt;   ). С file: аналогично.

Нет, не получается как вы предполагаете. Парсинг таким же образом хромает:

 # apt-repo add &apos;rpm [alt] copy:/mnt/data Sisyphus/x86_64 classic&apos;
 # apt-repo
 rpm [alt] copy: mnt/data/Sisyphus/x86_64 classic</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198851</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Vasilyev">andy</who>
    <bug_when>2021-06-02 00:16:36 +0300</bug_when>
    <thetext>  Сделал:

# apt-repo add &apos;rpm [alt] copy:/ALT Sisyphus/x86_64 classic&apos;
# apt-repo add &apos;rpm [alt] file:/ALT Sisyphus/x86_64 classic&apos;
# apt-repo
rpm [alt] file:/ALT Sisyphus/x86_64 classic
rpm [alt] copy:/ALT Sisyphus/x86_64 classic

apt-repo-1.3.15-alt1.noarch

  Т.е. с одним / путь добавляется, проблема с бОльшим числом слэшей :(</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>