pck-update: do not check for missing build requirements and source files when pck-update is invoked with the option --list-check
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
75bf9e1ed6
commit
a191a40d35
@ -6,6 +6,11 @@ Changes in version 1.12.2
|
||||
Add a few more examples for 'autospec -u' and add a short comment before
|
||||
each example.
|
||||
|
||||
+ update
|
||||
* pck-update - Davide Madrisan:
|
||||
Do not check for missing build requirements and source files when
|
||||
pck-update is invoked with the option '--list-check'.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Changes in version 1.12.1
|
||||
|
@ -1854,7 +1854,7 @@ specfile is newer than srpm (according to modification date)"
|
||||
fi
|
||||
|
||||
# download and install all the needed build requirements...
|
||||
|
||||
if [ "$list_check" = 0 ]; then
|
||||
# note: it's not possible to directly use the features provided by
|
||||
# rpmlib because they'are bugged (at least in the version 4.0.4)
|
||||
# so we install the necessary 'BuildRequirement's looking at the
|
||||
@ -1896,8 +1896,8 @@ installing missing build requirement"": \`${NOTE}$f${NORM}'"
|
||||
-z "$proxy_user" ]] && notify.debug "\
|
||||
{http,ftp}_proxy=\"{http,ftp}://${proxy_user:+${proxy_user}@}${proxy}\""
|
||||
|
||||
http_proxy="http://${proxy_user:+${proxy_user}@}${proxy}" \
|
||||
ftp_proxy="ftp://${proxy_user:+${proxy_user}@}${proxy}" \
|
||||
http_proxy="http://${proxy_user:+${proxy_user}@}${proxy}"\
|
||||
ftp_proxy="ftp://${proxy_user:+${proxy_user}@}${proxy}"\
|
||||
$rpm_download_and_install ${buildreqs_to_install[*]}
|
||||
else
|
||||
$rpm_download_and_install ${buildreqs_to_install[*]}
|
||||
@ -1909,9 +1909,10 @@ cannot install the needed build requirements"
|
||||
found ${NOTE}missing BuildRequirement${NORM} \`${NOTE}$f${NORM}'"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# automatically download the missing source and patch files...
|
||||
|
||||
if [ "$list_check" = 0 ]; then
|
||||
# get the list of URLs for the source files to download
|
||||
specfile.getvars -s $SRPM_SPECFILE_WITH_PATH --verbatim SPEC_SOURCE
|
||||
|
||||
@ -1950,6 +1951,7 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH")
|
||||
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
||||
--exit-on-err --filenum="$totfilenum" --destdir="$source_dir" "$fullURL"
|
||||
done
|
||||
fi
|
||||
|
||||
local rpmbuild_opts="\
|
||||
--define=\"%_srcrpmdir $srpms_dir\" \
|
||||
|
Loading…
Reference in New Issue
Block a user