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

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

    <bug>
          <bug_id>31162</bug_id>
          
          <creation_ts>2015-07-23 18:58:53 +0300</creation_ts>
          <short_desc>Рвутся хардлинки между пакетами разных репозиториев</short_desc>
          <delta_ts>2015-08-03 18:57: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>alterator-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>
          <dependson>31163</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="solo">solo</reporter>
          <assigned_to name="manowar@altlinux.org">manowar</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>manowar</cc>
    
    <cc>romenskiy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152215</commentid>
    <comment_count>0</comment_count>
    <who name="solo">solo</who>
    <bug_when>2015-07-23 18:58:53 +0300</bug_when>
    <thetext>При настройки зеркалирования нескольких репозиториев, текущий alterator-mirror-0.4.2-alt1 рвёт хардлинки (если они были) между пакетами находящимися одновременно в разных репозиториях.

  Причина: Скрипт /usr/sbin/alterator-mirror вызывает sisyphus-mirror индивидуально, для каждого из репозиториев. А sisyphus-mirror сохраняет нардлинки только в том случаи, если все нужные репозитории зеркалируются в рамках одного вызова. (А поиск в резервных копиях спасает не всегда.)

  Поскольку обрабатывать все репозитории в рамках одного вызова sisyphus-mirror нельзя (alterator-mirror может быть настроен так, что для зеркалирования рахных репозиториев используются разные сервера, а sisyphus-mirror такое не переварит, в рамках одного вызова). Предлагаю поступить следующим образом:

1. В sisyphus-mirror добавить параметр --link_list (LINK_LIST), содержимое которого будет добавляться в LINK_DEST после содержимого LIST.

2. В /usr/sbin/alterator-mirror при вызове sisyphus-mirror передавать --link_list=$LINK_LIST, где LINK_LIST содержит содержимое всех LIST из /etc/alterator/mirror/config/*</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152278</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-07-27 20:24:23 +0300</bug_when>
    <thetext>alterator-mirror-0.4.3-alt1 -&gt; sisyphus:

* Mon Jul 27 2015 Aleksey Avdeev &lt;solo@altlinux&gt; 0.4.3-alt1
- fix support hardlink between repositories (ALT #31162)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>