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:
parent
dcb26e0543
commit
ee112acfdd
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue