Browse Source

Alejandro Mery <amery@geeks.cl>:

detect mirror only when it will be used
force config only when downloading requireds


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2054 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Alejandro Mery 21 years ago
parent
commit
85c417d272
2 changed files with 10 additions and 9 deletions
  1. +1
    -0
      Documentation/Developers/CHANGELOG-RENE
  2. +9
    -9
      scripts/Download

+ 1
- 0
Documentation/Developers/CHANGELOG-RENE

@ -3,6 +3,7 @@
- implemented kiss' mount '-r' options and added a remount option ('-R') - implemented kiss' mount '-r' options and added a remount option ('-R')
- updated rockplug (0.0.6) - updated rockplug (0.0.6)
- Alejandro Mery: fixed scripts/Download to not always require a config
*) 2003-12-23 (2.0.0-rc3 - 2.0.0-rc4) *) 2003-12-23 (2.0.0-rc3 - 2.0.0-rc4)

+ 9
- 9
scripts/Download

@ -234,14 +234,6 @@ cksum_chk() {
return 0 return 0
} }
# Choosen config must exist
#
if [ ! -f config/$config/packages ]; then
echo "ERROR: Config $config doesn't exist."
echo "ERROR: try ./scripts/Config -cfg $config first."
exit 1
fi
# Autodetect best Mirror and safe url in $mirror # Autodetect best Mirror and safe url in $mirror
# #
detect_mirror() { detect_mirror() {
@ -749,6 +741,14 @@ repository() {
} }
required() { required() {
# Choosen config must exist
#
if [ ! -f config/$config/packages ]; then
echo "ERROR: Config $config doesn't exist."
echo "ERROR: try ./scripts/Config -cfg $config first."
exit 1
fi
while read on a b tree pkg c ; do while read on a b tree pkg c ; do
if [ "$on" = "X" ] ; then if [ "$on" = "X" ] ; then
grep -H '^\[D\] ' package/$tree/$pkg/$pkg.desc > src/down.$$.lst grep -H '^\[D\] ' package/$tree/$pkg/$pkg.desc > src/down.$$.lst
@ -788,7 +788,7 @@ all() {
# Do mirror detection only once # Do mirror detection only once
# #
if [ $this_is_the_2nd_run = 0 ]; then
if [ $this_is_the_2nd_run = 0 -a "${1:0:5}" != "-list" -a $checkonly = 0 ]; then
detect_mirror detect_mirror
fi fi

Loading…
Cancel
Save