pck-update (action 3,5): preliminary support for source files updates from a git repository
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
dfbd94458e
commit
7cc90d2efb
@ -56,6 +56,10 @@ Changes in version 1.12.6
|
|||||||
* lib/libnetwork.lib - Davide Madrisan:
|
* lib/libnetwork.lib - Davide Madrisan:
|
||||||
New helper function: 'git.download()'.
|
New helper function: 'git.download()'.
|
||||||
|
|
||||||
|
+ improvement
|
||||||
|
* pck-update - Davide Madrisan:
|
||||||
|
Action 3,5: support source files update from a git repository.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Changes in version 1.12.5
|
Changes in version 1.12.5
|
||||||
|
@ -1122,9 +1122,16 @@ echo $fullURL | sed "s,%[{]*version[}]*,$pck_newver,g")
|
|||||||
rpmvars.solve "$fullURL_new" "$SRPM_SPECFILE_WITH_PATH")
|
rpmvars.solve "$fullURL_new" "$SRPM_SPECFILE_WITH_PATH")
|
||||||
notify.debug "fullURL_new = $fullURL_new"
|
notify.debug "fullURL_new = $fullURL_new"
|
||||||
|
|
||||||
curl.download --options "$curl_options" $sdflag \
|
case "$fullURL_new" in
|
||||||
|
git://*|http://*.git|https://*.git)
|
||||||
|
git.download \
|
||||||
|
--destdir="$source_dir" "$fullURL_new"
|
||||||
|
;;
|
||||||
|
*) curl.download --options "$curl_options" $sdflag \
|
||||||
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
||||||
--exit-on-err --filenum="$totfilenum" --destdir="$source_dir" "$fullURL_new"
|
--exit-on-err --filenum="$totfilenum" --destdir="$source_dir" "$fullURL_new"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# get the list of URL of all the patches (usually local files)...
|
# get the list of URL of all the patches (usually local files)...
|
||||||
@ -1946,9 +1953,16 @@ found ${NOTE}missing BuildRequirement${NORM} \`${NOTE}$f${NORM}'"
|
|||||||
rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH")
|
rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH")
|
||||||
notify.debug "fullURL = $fullURL"
|
notify.debug "fullURL = $fullURL"
|
||||||
|
|
||||||
curl.download --options "$curl_options" $sdflag \
|
case "$fullURL_new" in
|
||||||
|
git://*|http://*.git|https://*.git)
|
||||||
|
git.download \
|
||||||
|
--destdir="$source_dir" "$fullURL"
|
||||||
|
;;
|
||||||
|
*) curl.download --options "$curl_options" $sdflag \
|
||||||
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
||||||
--exit-on-err --filenum="$totfilenum" --destdir="$source_dir" "$fullURL"
|
--exit-on-err --filenum="$totfilenum" --destdir="$source_dir" "$fullURL"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# get the list of URLs for the patch files to download
|
# get the list of URLs for the patch files to download
|
||||||
|
Loading…
Reference in New Issue
Block a user