libnetwork.lib: git.create_tarball(): add a warning message when the version passed to the function is not the expected one (that is a string made by the current date in the format YYYYMMDD followed by 'git')
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
f107a20bf8
commit
3425fbf7ee
@ -64,6 +64,11 @@ Changes in version 1.12.6
|
|||||||
* pck-update - Davide Madrisan:
|
* pck-update - Davide Madrisan:
|
||||||
Action 3,5: set the package version when calling 'git.download()'.
|
Action 3,5: set the package version when calling 'git.download()'.
|
||||||
|
|
||||||
|
* lib/libnetwork.lib - Davide Madrisan:
|
||||||
|
git.create_tarball(): add a warning message when the version passed to the
|
||||||
|
function is not the expected one (that is a string made by the current
|
||||||
|
date in the format YYYYMMDD followed by "git").
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Changes in version 1.12.5
|
Changes in version 1.12.5
|
||||||
|
@ -987,9 +987,15 @@ function git.create_tarball() {
|
|||||||
[ "$destdir" ] || notify.error $"\
|
[ "$destdir" ] || notify.error $"\
|
||||||
(bug)"" -- $FUNCNAME: "$"missing mandatory arg"" (--destdir)"
|
(bug)"" -- $FUNCNAME: "$"missing mandatory arg"" (--destdir)"
|
||||||
|
|
||||||
[ "$pck_version" ] ||
|
local today="$(date "+%Y%m%d")"
|
||||||
{ pck_version="$(date "+%Y%m%dgit")"
|
if [ "$pck_version" ]; then
|
||||||
notify.debug "$FUNCNAME: pck_version = \"$pck_version\""; }
|
[ "$pck_version" = "${today}git" ] || notify.warning "\
|
||||||
|
${NOTE}${today}git${NORM}: "$"\
|
||||||
|
not the expected package version"" (${NOTE}${today}git${NORM})..."
|
||||||
|
else
|
||||||
|
pck_version="${today}git"
|
||||||
|
notify.debug "$FUNCNAME: pck_version = \"$pck_version\""
|
||||||
|
fi
|
||||||
|
|
||||||
which git &>/dev/null ||
|
which git &>/dev/null ||
|
||||||
notify.error $"utility not found"": \`git'"
|
notify.error $"utility not found"": \`git'"
|
||||||
|
@ -88,6 +88,9 @@ msgstr "pacchetto non trovato"
|
|||||||
msgid "downloading"
|
msgid "downloading"
|
||||||
msgstr "download di"
|
msgstr "download di"
|
||||||
|
|
||||||
|
msgid "not the expected package version"
|
||||||
|
msgstr "non è la versione di pacchetto prevista"
|
||||||
|
|
||||||
msgid "cloning git repository"
|
msgid "cloning git repository"
|
||||||
msgstr "clonazione del repository"
|
msgstr "clonazione del repository"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user