summaryrefslogtreecommitdiff
path: root/dpkg-deb/main.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-08-09 02:44:59 +0200
committerGuillem Jover <guillem@debian.org>2016-10-30 04:43:33 +0100
commitb42e8e0a76e914cd88de8cbd41150064504a597b (patch)
tree56cac06811c71441ba0981f7cb37f2015beafa2b /dpkg-deb/main.c
parentef6187ded62bb3973e4e57779edc87c3e2904af5 (diff)
downloaddpkg-b42e8e0a76e914cd88de8cbd41150064504a597b.tar.gz
dpkg-deb: Remove obsolete --old and --new options
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r--dpkg-deb/main.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index fcab668f4..7892fa9a5 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -102,8 +102,6 @@ usage(const struct cmdinfo *cip, const char *value)
" --showformat=<format> Use alternative format for --show.\n"
" --deb-format=<format> Select archive format.\n"
" Allowed values: 0.939000, 2.0 (default).\n"
-" --old Legacy alias for '--deb-format=0.939000'.\n"
-" --new Legacy alias for '--deb-format=2.0'.\n"
" --nocheck Suppress control file check (build bad\n"
" packages).\n"
" --uniform-compression Use the compression params on all members.\n"
@@ -162,24 +160,6 @@ set_deb_format(const struct cmdinfo *cip, const char *value)
badusage(_("unknown deb format version: %s"), value);
}
-static void
-set_deb_old(const struct cmdinfo *cip, const char *value)
-{
- deb_format = DEB_VERSION_OBJECT(0, 939000);
-
- warning(_("obsolete option '--%s'; please use '--%s' instead"),
- cip->olong, "deb-format=0.939000");
-}
-
-static void
-set_deb_new(const struct cmdinfo *cip, const char *value)
-{
- deb_format = DEB_VERSION_OBJECT(2, 0);
-
- warning(_("obsolete option '--%s'; please use '--%s' instead"),
- cip->olong, "deb-format=2.0");
-}
-
struct compress_params compress_params = {
.type = DPKG_DEB_DEFAULT_COMPRESSOR,
.strategy = COMPRESSOR_STRATEGY_NONE,
@@ -232,8 +212,6 @@ static const struct cmdinfo cmdinfos[]= {
ACTION("show", 'W', 0, do_showinfo),
{ "deb-format", 0, 1, NULL, NULL, set_deb_format },
- { "new", 0, 0, NULL, NULL, set_deb_new },
- { "old", 0, 0, NULL, NULL, set_deb_old },
{ "debug", 'D', 0, &debugflag, NULL, NULL, 1 },
{ "verbose", 'v', 0, &opt_verbose, NULL, NULL, 1 },
{ "nocheck", 0, 0, &nocheckflag, NULL, NULL, 1 },