Merge lp:~cjwatson/ubuntu-archive-publishing/tidy-copy-indices into lp:ubuntu-archive-publishing

Proposed by Colin Watson
Status: Needs review
Proposed branch: lp:~cjwatson/ubuntu-archive-publishing/tidy-copy-indices
Merge into: lp:ubuntu-archive-publishing
Diff against target: 12 lines (+2/-2)
1 file modified
publish-distro.d/30-copy-indices (+2/-2)
To merge this branch: bzr merge lp:~cjwatson/ubuntu-archive-publishing/tidy-copy-indices
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+448332@code.launchpad.net

Commit message

Improve copying of overrides.

Description of the change

The old ubuntu-rtm publisher job produces this error every time it runs:

  rsync: link_stat "/srv/launchpad.net/ubuntu-rtm-archive/ubuntu-rtm-overrides/override.*" failed: No such file or directory (2)
  rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
  run-parts: /srv/launchpad.net/publisher-parts/ubuntu-rtm/publish-distro.d/30-copy-indices exited with return code 23

While ubuntu-rtm itself is obviously obsolete, it's easy enough to fix the rsync invocation here so that it doesn't have this problem in the edge case where there are no override files to copy.

To post a comment you must log in.

Unmerged revisions

124. By Colin Watson

Improve copying of overrides.

The old ubuntu-rtm publisher job produces this error every time it runs:

  rsync: link_stat "/srv/launchpad.net/ubuntu-rtm-archive/ubuntu-rtm-overrides/override.*" failed: No such file or directory (2)
  rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
  run-parts: /srv/launchpad.net/publisher-parts/ubuntu-rtm/publish-distro.d/30-copy-indices exited with return code 23

While ubuntu-rtm itself is obviously obsolete, it's easy enough to fix
the rsync invocation here so that it doesn't have this problem in the
edge case where there are no override files to copy.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'publish-distro.d/30-copy-indices'
2--- publish-distro.d/30-copy-indices 2015-03-27 00:00:42 +0000
3+++ publish-distro.d/30-copy-indices 2023-08-03 07:17:40 +0000
4@@ -7,6 +7,6 @@
5 INDICES=$ARCHIVEROOT/indices
6
7 mkdir -p -- $INDICES
8- rm -f -- $INDICES/override
9- rsync -a -- $OVERRIDEROOT/override.* $INDICES/
10+ rsync -a --include override.\* --exclude \* --delete \
11+ $OVERRIDEROOT/ $INDICES/
12 fi

Subscribers

People subscribed via source and target branches