Bug 31179 - Создаёт весящие ссылки вида <arch>/SRPMS.*/*.src.rpm
Summary: Создаёт весящие ссылки вида <arch>/SRPMS.*/*.src.rpm
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: sisyphus-mirror (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 11:29 MSK by solo
Modified: 2015-08-03 18:58 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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