Prevent filename.rpm.1 downloads

wget defaults to appending ".1" to filenames when
downloading files that already exists. Switching
to timestamp mode (-N) forces wget to replace
existing file only when there is a newer file
on the server. This applies just to downloading
RPM files currently.

Change-Id: Ifc63abb181d53255105e620b26fd9e81611cdc5e
Closes-Bug: #1423874
This commit is contained in:
Matthew Mosesohn 2015-02-20 14:52:33 +03:00 committed by Dmitry Pyzhov
parent dcb26e0543
commit ee112acfdd
1 changed files with 2 additions and 2 deletions

View File

@ -53,13 +53,13 @@ endif
$(BUILD_DIR)/mirror/centos/rpm-download.done: $(BUILD_DIR)/mirror/centos/urls.list
dst="$(LOCAL_MIRROR_CENTOS_OS_BASEURL)/Packages"; \
mkdir -p "$$dst" && \
xargs -n1 -P4 wget -nv -P "$$dst" < $<
xargs -n1 -P4 wget -Nnv -P "$$dst" < $<
$(ACTION.TOUCH)
$(BUILD_DIR)/mirror/centos/src-rpm-download.done: $(BUILD_DIR)/mirror/centos/src_urls.list
dst="$(LOCAL_MIRROR_CENTOS_OS_BASEURL)/Sources"; \
mkdir -p "$$dst" && \
xargs --no-run-if-empty -n1 -P4 wget -nv -P "$$dst" < $<
xargs --no-run-if-empty -n1 -P4 wget -Nnv -P "$$dst" < $<
$(ACTION.TOUCH)