pck-update,lib/libnetwork.lib: "host" is not required by pck-update; move the requirement to libnetwork

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-04-23 21:21:10 +02:00
parent a360868bda
commit 37b7784608
3 changed files with 10 additions and 3 deletions

View File

@ -18,6 +18,10 @@ Wed Apr 18 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
* spec-create - Davide Madrisan: * spec-create - Davide Madrisan:
Exist with error when git is required but cannot be found. Exist with error when git is required but cannot be found.
+ bugfix
* pck-update, lib/libnetwork.lib - Davide Madrisan:
`host' is not required by pck-update; move the requirement to libnetwork.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.9.4 Changes in version 1.9.4

View File

@ -18,6 +18,11 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
fi fi
TEXTDOMAIN="libnetwork"; export TEXTDOMAIN TEXTDOMAIN="libnetwork"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in curl host mktemp; do
[ "$(type -p curl)" ] || notify.error $"utility not found"": \`curl'"
done
# function repository.is_reachable() # function repository.is_reachable()
# check if the server '$1' is reachable (test = DNS lookup query) # check if the server '$1' is reachable (test = DNS lookup query)
# args: # args:
@ -525,8 +530,6 @@ function curl.download() {
notify.note $"downloading"" ${NOTE}$file_name${NORM} ..." notify.note $"downloading"" ${NOTE}$file_name${NORM} ..."
[ "$(type -p curl)" ] || notify.error $"utility not found"": \`curl'"
[ -d "$destdir" ] || [ -d "$destdir" ] ||
if [ "$exitonerror" = 1 ]; then if [ "$exitonerror" = 1 ]; then
notify.warning $"\ notify.warning $"\

View File

@ -309,7 +309,7 @@ fi
[ "$logging_dir" ] || logging_dir="${tmppath_dir:-/var/tmp}/@package@" [ "$logging_dir" ] || logging_dir="${tmppath_dir:-/var/tmp}/@package@"
# check if all the needed tools are available # check if all the needed tools are available
for tool in cat chmod cpio date file find fold ftp getopt grep host \ for tool in cat chmod cpio date file find fold ftp getopt grep \
mktemp objdump readlink rpm rpmbuild rpm2cpio sed seq sort strings; do mktemp objdump readlink rpm rpmbuild rpm2cpio sed seq sort strings; do
[ "$(type -p $tool)" ] || [ "$(type -p $tool)" ] ||
notify.error $"utility not found"": \`$tool'" notify.error $"utility not found"": \`$tool'"