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

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

    <bug>
          <bug_id>31179</bug_id>
          
          <creation_ts>2015-07-31 11:29:33 +0300</creation_ts>
          <short_desc>Создаёт весящие ссылки вида &lt;arch&gt;/SRPMS.*/*.src.rpm</short_desc>
          <delta_ts>2015-08-03 18:58:21 +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>sisyphus-mirror</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="solo">solo</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152296</commentid>
    <comment_count>0</comment_count>
    <who name="solo">solo</who>
    <bug_when>2015-07-31 11:29:33 +0300</bug_when>
    <thetext>Текущий sisyphus-mirror создаёт весящие ссылки вида &lt;arch&gt;/SRPMS.*/*.src.rpm. Причина в комбинации --include/--exclude, передаваемых rsync`у:

$ rsync -n -rltmvH --delete-delay --delete-excluded --stats --include=&apos;x86_64/**&apos; --include=&apos;*/&apos; --include=/files/.timestamp --exclude=&apos;*&apos; rsync://ftp.altlinux.org/ALTLinux/Sisyphus/ Sisyphus
Welcome to ALT Linux Team public rsync archive!

receiving file list ... done
created directory Sisyphus
./
files/
files/.timestamp
files/x86_64/
files/x86_64/RPMS/
files/x86_64/RPMS/0ad-0.0.18.alpha-alt1.1.x86_64.rpm
...
files/x86_64/RPMS/zzuf-debuginfo-0.13-alt1.x86_64.rpm
x86_64/
x86_64/RPMS.classic/
x86_64/RPMS.classic/0ad-0.0.18.alpha-alt1.1.x86_64.rpm -&gt; ../../files/x86_64/RPMS/0ad-0.0.18.alpha-alt1.1.x86_64.rpm
...
x86_64/RPMS.classic/zzuf-0.13-alt1.x86_64.rpm -&gt; ../../files/x86_64/RPMS/zzuf-0.13-alt1.x86_64.rpm
x86_64/RPMS.debuginfo/
x86_64/RPMS.debuginfo/0ad-debuginfo-0.0.18.alpha-alt1.1.x86_64.rpm -&gt; ../../files/x86_64/RPMS/0ad-debuginfo-0.0.18.alpha-alt1.1.x86_64.rpm
...
x86_64/RPMS.debuginfo/zzuf-debuginfo-0.13-alt1.x86_64.rpm -&gt; ../../files/x86_64/RPMS/zzuf-debuginfo-0.13-alt1.x86_64.rpm
x86_64/SRPMS.classic/
x86_64/SRPMS.classic/0ad-0.0.18.alpha-alt1.1.src.rpm -&gt; ../../files/SRPMS/0ad-0.0.18.alpha-alt1.1.src.rpm
...
x86_64/SRPMS.classic/zzuf-0.13-alt1.src.rpm -&gt; ../../files/SRPMS/zzuf-0.13-alt1.src.rpm
x86_64/base/
...

  При этом добавление --exclude=SRPMS (эквивалент подключения дефолтного /etc/sisyphus-mirror/exclude) ситуацию не исправляет -- необходим --exclude=SRPMS.*...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152297</commentid>
    <comment_count>1</comment_count>
    <who name="solo">solo</who>
    <bug_when>2015-07-31 12:02:45 +0300</bug_when>
    <thetext>  Точнее, лучше использовать --exclude=&quot;SRPMS*/&quot;. Для корректного зеркалирования src.rpm при этом, в /etc/sisyphus-mirror/include надо будет добавить:

SRPMS*/
SRPMS/**</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152300</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-08-01 19:04:28 +0300</bug_when>
    <thetext>sisyphus-mirror-0.8.5-alt1 -&gt; sisyphus:

* Fri Jul 31 2015 Aleksey Avdeev &lt;solo@altlinux&gt; 0.8.5-alt1
- Fix of dangling symlinks &lt;arch&gt;/SRPMS.*/*.src.rpm (ALT #31179)
- Add manage mirroring src.rpm packets through the control</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>