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

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

    <bug>
          <bug_id>58216</bug_id>
          
          <creation_ts>2026-03-13 11:12:13 +0300</creation_ts>
          <short_desc>apt-repo не удаляет репозитории, подключенные по http</short_desc>
          <delta_ts>2026-03-29 01:40:31 +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>FIXED</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="Колесников Алексей Юрьевич">kolesnikovaj</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>antohami</cc>
    
    <cc>asy</cc>
    
    <cc>cas</cc>
    
    <cc>george</cc>
    
    <cc>shevchenkodyu</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>283752</commentid>
    <comment_count>0</comment_count>
    <who name="Колесников Алексей Юрьевич">kolesnikovaj</who>
    <bug_when>2026-03-13 11:12:13 +0300</bug_when>
    <thetext>Стенд:
 Alt KWorkstation 11.2 обновленный до Сизиф.

Версия:
 apt-repo-1.5.0-alt1.noarch

Шаги воспроизведения:
 1. До обновления до версии 1.5.0 добавить задание.
  # apt-repo add &lt;task&gt; 

 2. Проверить добавление репозитория:
  # apt-repo 
  (Примерный вывод: rpm http://git.altlinux.org repo/&lt;task&gt;/x86_64 task
rpm http://git.altlinux.org repo/&lt;task&gt;/x86_64-i586 task)(Обр. вним. - &quot;http&quot;)

 3. Обновиться до версии 1.5.0 и удалить задание:
  # apt-repo rm &lt;task&gt;

 4. Проверить удаление репозитория:
  # apt-repo 

Ожидаемый результат:
  Указанный репозиторий удалился

Реальный результат:
  Репозиторий не удалился.

Доп. инфо.: При добавлении задания после обновления (задание добавляется с &quot;https&quot;), apt-repo rm &lt;task&gt; - удаляет задание.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283771</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2026-03-13 12:39:54 +0300</bug_when>
    <thetext>Можете, пожалуйста, обосновать NOTABUG?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283877</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2026-03-15 10:30:08 +0300</bug_when>
    <thetext>Утверждение о том, что баг есть основано на неоправданных ожиданиях?

Сломался ли какой-то реальный workflow?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283878</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2026-03-15 10:41:25 +0300</bug_when>
    <thetext>Не считаю, что это баг, но можно добавить такую фичу, чтоб удалялись все ссылки не зависимо от http:/https: - если она полезна, а не фикс ради фикса.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283879</commentid>
    <comment_count>4</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2026-03-15 10:52:27 +0300</bug_when>
    <thetext>apt-repo добавляет и удаляет только http:// или только https:// в зависимости от наличия пакета apt-https в системе. Если по какой-то причине нужно, чтобы это работало как-то по другому, кому-то надо продумать логику этого другого поведения.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283883</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2026-03-15 12:43:34 +0300</bug_when>
    <thetext>Если сказано &quot;удалить репо с заданием&quot;, надо удалять репо с заданием. Какая разница, http там, https или что-то иное?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283884</commentid>
    <comment_count>6</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2026-03-15 13:06:19 +0300</bug_when>
    <thetext>Вот тестовое задание https://git.altlinux.org/tasks/411063/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283891</commentid>
    <comment_count>7</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2026-03-15 13:46:40 +0300</bug_when>
    <thetext>(Ответ для Vitaly Chikunov на комментарий #6)

&gt; Вот тестовое задание https://git.altlinux.org/tasks/411063/

Работает. Но есть недочёт с версией:

# rpm -qa| grep apt-re
apt-repo-1.5.1-alt1.noarch

# apt-repo -v
1.4.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283893</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2026-03-15 13:54:45 +0300</bug_when>
    <thetext>(In reply to Sergey Y. Afonin from comment #7)
&gt; есть недочёт с версией:

Спасибо, исправляю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284731</commentid>
    <comment_count>9</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-03-29 01:40:31 +0300</bug_when>
    <thetext>apt-repo-1.5.1-alt1 -&gt; sisyphus:

Sun Mar 15 2026 Vitaly Chikunov &lt;vt@altlinux&gt; 1.5.1-alt1
- Fix APT proxy support (ALT #58197).
- Make apt-repo rm match both http and https urls (ALT #58216).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>