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:
Davide Madrisan 2012-05-26 21:42:29 +02:00
parent 75bf9e1ed6
commit a191a40d35
2 changed files with 67 additions and 60 deletions

View File

@ -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

View File

@ -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
@ -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\" \