From 89a1913accb6d400378261599adc7c9f0ac4de98 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Tue, 1 Aug 2000 17:23:55 +0000 Subject: [PATCH] Add assert-versioned-provides --- main/enquiry.c | 5 +++++ main/main.c | 4 +++- main/main.h | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main/enquiry.c b/main/enquiry.c index d8b17eed..22d1e9fa 100644 --- a/main/enquiry.c +++ b/main/enquiry.c @@ -550,6 +550,11 @@ void assertmulticonrep(const char *const *argv) { assertversion(argv,&epochversion,"1.4.1.19"); } +void assertverprov(const char *const *argv) { + static struct versionrevision epochversion = {~0UL,0,0}; + assertversion(argv,&epochversion,"1.7.0"); +} + void predeppackage(const char *const *argv) { /* Print a single package which: * (a) is the target of one or more relevant predependencies. diff --git a/main/main.c b/main/main.c index ad891b59..c6ca3571 100644 --- a/main/main.c +++ b/main/main.c @@ -86,7 +86,8 @@ Use dpkg -b|--build|-c|--contents|-e|--control|-I|--info|-f|--field|\n\ -x|--extract|-X|--vextract|--fsys-tarfile on archives (type %s --help.)\n\ \n\ For internal use: dpkg --assert-support-predepends | --predep-package |\n\ - --assert-working-epoch | --assert-long-filenames | --assert-multi-conrep\n\ + --assert-working-epoch | --assert-long-filenames | --assert-multi-conrep |\n\ + --assert-versioned-provides\n\ \n\ Options:\n\ --admindir= Use instead of %s\n\ @@ -346,6 +347,7 @@ static const struct cmdinfo cmdinfos[]= { ACTION( "assert-working-epoch", 0, act_assertepoch, assertepoch ), ACTION( "assert-long-filenames", 0, act_assertlongfilenames, assertlongfilenames ), ACTION( "assert-multi-conrep", 0, act_assertmulticonrep, assertmulticonrep ), + ACTION( "assert-versioned-provides", 0, act_assertverprov, assertverprov ), ACTION( "print-installation-architecture", 0, act_printinstarch, printinstarch ), ACTION( "predep-package", 0, act_predeppackage, predeppackage ), ACTION( "compare-versions", 0, act_cmpversions, cmpversions ), diff --git a/main/main.h b/main/main.h index 24ee4c69..7cee11f9 100644 --- a/main/main.h +++ b/main/main.h @@ -54,7 +54,8 @@ enum action { act_unset, act_install, act_unpack, act_avail, act_configure, act_assertpredep, act_printarch, act_predeppackage, act_cmpversions, act_printinstarch, act_compareversions, act_printavail, act_avclear, act_forgetold, act_getselections, act_setselections, act_printgnuarch, - act_assertepoch, act_assertlongfilenames, act_assertmulticonrep }; + act_assertepoch, act_assertlongfilenames, act_assertmulticonrep, + act_assertverprov }; enum conffopt { cfof_prompt = 001, @@ -118,6 +119,7 @@ void assertepoch(const char *const *argv); void assertpredep(const char *const *argv); void assertlongfilenames(const char *const *argv); void assertmulticonrep(const char *const *argv); +void assertverprov(const char *const *argv); void predeppackage(const char *const *argv); void printarch(const char *const *argv); void printinstarch(const char *const *argv); -- 2.39.5