Bug 31179

Summary: Создаёт весящие ссылки вида <arch>/SRPMS.*/*.src.rpm
Product: Sisyphus Reporter: solo <solo>
Component: sisyphus-mirrorAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3    
Version: unstable   
Hardware: all   
OS: Linux   

Description solo 2015-07-31 11:29:33 MSK
Текущий sisyphus-mirror создаёт весящие ссылки вида <arch>/SRPMS.*/*.src.rpm. Причина в комбинации --include/--exclude, передаваемых rsync`у:

$ rsync -n -rltmvH --delete-delay --delete-excluded --stats --include='x86_64/**' --include='*/' --include=/files/.timestamp --exclude='*' 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 -> ../../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 -> ../../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 -> ../../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 -> ../../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 -> ../../files/SRPMS/0ad-0.0.18.alpha-alt1.1.src.rpm
...
x86_64/SRPMS.classic/zzuf-0.13-alt1.src.rpm -> ../../files/SRPMS/zzuf-0.13-alt1.src.rpm
x86_64/base/
...

  При этом добавление --exclude=SRPMS (эквивалент подключения дефолтного /etc/sisyphus-mirror/exclude) ситуацию не исправляет -- необходим --exclude=SRPMS.*...
Comment 1 solo 2015-07-31 12:02:45 MSK
  Точнее, лучше использовать --exclude="SRPMS*/". Для корректного зеркалирования src.rpm при этом, в /etc/sisyphus-mirror/include надо будет добавить:

SRPMS*/
SRPMS/**
Comment 2 Repository Robot 2015-08-01 19:04:28 MSK
sisyphus-mirror-0.8.5-alt1 -> sisyphus:

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