Add deprecation warnings to gensync and updatesync
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
7cfb343b0f
commit
7786bf6024
2 changed files with 14 additions and 0 deletions
|
@ -31,6 +31,9 @@ usage() {
|
||||||
printf "gensync (pacman) %s\n\n" "$myver"
|
printf "gensync (pacman) %s\n\n" "$myver"
|
||||||
printf "$(gettext "Usage: %s <root> <destfile> [package_directory]")\n\n" "$0"
|
printf "$(gettext "Usage: %s <root> <destfile> [package_directory]")\n\n" "$0"
|
||||||
printf "$(gettext "\
|
printf "$(gettext "\
|
||||||
|
NOTE: this script is DEPRECATED. It will be removed in the next major\n\
|
||||||
|
release of pacman, so please use repo-add and repo-remove instead.\n\n")"
|
||||||
|
printf "$(gettext "\
|
||||||
gensync will generate a sync database by reading all PKGBUILD files\n\
|
gensync will generate a sync database by reading all PKGBUILD files\n\
|
||||||
from <root>. gensync builds the database in a temporary directory\n\
|
from <root>. gensync builds the database in a temporary directory\n\
|
||||||
and then compresses it to <destfile>.\n\n")"
|
and then compresses it to <destfile>.\n\n")"
|
||||||
|
@ -116,6 +119,10 @@ fi
|
||||||
|
|
||||||
[ ! -d "$rootdir" ] && die "$(gettext "invalid root dir: %s")" $rootdir
|
[ ! -d "$rootdir" ] && die "$(gettext "invalid root dir: %s")" $rootdir
|
||||||
|
|
||||||
|
printf "$(gettext "\
|
||||||
|
NOTE: this script is DEPRECATED. It will be removed in the next major\n\
|
||||||
|
release of pacman, so please use repo-add and repo-remove instead.\n\n")"
|
||||||
|
|
||||||
echo "$(gettext "gensync: building database entries, generating md5sums...")" >&2
|
echo "$(gettext "gensync: building database entries, generating md5sums...")" >&2
|
||||||
cd "$destdir"
|
cd "$destdir"
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ usage() {
|
||||||
printf "updatesync (pacman) %s\n\n" "$myver"
|
printf "updatesync (pacman) %s\n\n" "$myver"
|
||||||
printf "$(gettext "Usage: %s <action> <destfile> <option> [package_directory]")\n\n" "$0"
|
printf "$(gettext "Usage: %s <action> <destfile> <option> [package_directory]")\n\n" "$0"
|
||||||
printf "$(gettext "\
|
printf "$(gettext "\
|
||||||
|
NOTE: this script is DEPRECATED. It will be removed in the next major\n\
|
||||||
|
release of pacman, so please use repo-add and repo-remove instead.\n\n")"
|
||||||
|
printf "$(gettext "\
|
||||||
updatesync will update a sync database by reading a PKGBUILD and\n\
|
updatesync will update a sync database by reading a PKGBUILD and\n\
|
||||||
modifying the destfile. updatesync updates the database in a temporary\n\
|
modifying the destfile. updatesync updates the database in a temporary\n\
|
||||||
directory and then compresses it to <destfile>.\n\n")"
|
directory and then compresses it to <destfile>.\n\n")"
|
||||||
|
@ -116,6 +119,10 @@ if [ "$4" != "" ]; then
|
||||||
fi
|
fi
|
||||||
opt_force=""
|
opt_force=""
|
||||||
|
|
||||||
|
printf "$(gettext "\
|
||||||
|
NOTE: this script is DEPRECATED. It will be removed in the next major\n\
|
||||||
|
release of pacman, so please use repo-add and repo-remove instead.\n\n")"
|
||||||
|
|
||||||
if [ "$action" = "upd" ]; then # INSERT / UPDATE
|
if [ "$action" = "upd" ]; then # INSERT / UPDATE
|
||||||
if [ ! -f "$option" ]; then
|
if [ ! -f "$option" ]; then
|
||||||
die "$(gettext "%s not found")" $option
|
die "$(gettext "%s not found")" $option
|
||||||
|
|
Loading…
Add table
Reference in a new issue