Commit 336ea428 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 888ef77d
......@@ -26,7 +26,8 @@ SPEC=$1
# allow run with spec file (obsoleted)
[ -r "$SPEC" ] && shift
test -f "$SPEC" || SPEC=$(get_gear_spec)
[ -s "$SPEC" ] || SPEC=$(get_gear_spec)
[ -s "$SPEC" ] || fatal "Can't find spec file. Run $0 --help for help."
VER=$1
# need for rpmgs
......
......@@ -222,15 +222,14 @@ print_grprepl_list()
# Converts ALT Linux Sisyphus dependencies to target notation
# and print out result dependencies
# needs DISTRVENDOR, BUILDARCH, PKGFORMAT and so one
# call with package list
convert_pkgreqs_to_target()
{
local listdep=$@ TARGETPKGNAME
assert_var DISTRVENDOR BUILDARCH PKGFORMAT
repl_list=$(print_pkgrepl_list)
local j
for j in $listdep; do
for j in "$@" ; do
tolocal_anyrepl $j $repl_list && estrlist list "$TARGETPKGNAME" || echo $j
done | sort -u | sed -e "s|\\\\+|\+|g"
}
......
......@@ -23,6 +23,7 @@ download_url()
# NOTE: disable cert checking
# use wget with try=1 and timeout = 30 sec
showcmd wget --no-check-certificate --unlink -c -t 1 -T 30 "$1" -O "$NAME"
a= wget --no-check-certificate --unlink -c -t 1 -T 30 "$1" -O "$NAME" && return
rm -f "$NAME"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment