diff options
author | Ben Collins <bcollins@debian.org> | 1999-10-21 15:19:23 +0000 |
---|---|---|
committer | Ben Collins <bcollins@debian.org> | 1999-10-21 15:19:23 +0000 |
commit | 6ffb7b501e4eaf505c9502b54de8dc1aa5a62b0a (patch) | |
tree | 74a0b827bfc1ee3b56fc52e846a15dc0805842e7 | |
parent | 167fbbf3ec4a4e2758693ea0562d6415dabe01f3 (diff) | |
download | dpkg-6ffb7b501e4eaf505c9502b54de8dc1aa5a62b0a.tar.gz |
minor edits
-rwxr-xr-x | debian/rules | 8 | ||||
-rw-r--r-- | include/dpkg.h.in | 1 | ||||
-rw-r--r-- | lib/showcright.c | 5 | ||||
-rw-r--r-- | main/help.c | 21 | ||||
-rw-r--r-- | main/main.c | 2 |
5 files changed, 5 insertions, 32 deletions
diff --git a/debian/rules b/debian/rules index 905099177..7acfd97c2 100755 --- a/debian/rules +++ b/debian/rules @@ -133,11 +133,13 @@ binary-indep: binary-trees fi; \ dpkg-distaddfile -f$(DIR)/debian/files $$f.html.tar.gz byhand -; \ done - set -e; \ + set -e;\ version=`sed -n 's/^Version: //p' $(DIR)/debian/tmp-dev/DEBIAN/control`; \ file=dpkg-$${version}.tar.gz; \ - cp $(DIR)/../dpkg_$${version}.tar.gz $(DIR)/../$${file}; \ - dpkg-distaddfile -f$(DIR)/debian/files $${file} byhand -; + if [ -f $(DIR)/../dpkg_$${version}.tar.gz ]; then \ + cp $(DIR)/../dpkg_$${version}.tar.gz $(DIR)/../$${file}; \ + dpkg-distaddfile -f$(DIR)/debian/files $${file} byhand -; \ + fi binary-arch: binary-trees $(checkdir) diff --git a/include/dpkg.h.in b/include/dpkg.h.in index ecae1fa67..cef8dfb12 100644 --- a/include/dpkg.h.in +++ b/include/dpkg.h.in @@ -202,6 +202,5 @@ extern volatile int onerr_abort; struct cmdinfo; void showcopyright(const struct cmdinfo*, const char*); -char *libdpkgver(void); #endif /* DPKG_H */ diff --git a/lib/showcright.c b/lib/showcright.c index 037c5dbcf..c327076b2 100644 --- a/lib/showcright.c +++ b/lib/showcright.c @@ -24,7 +24,6 @@ #include <config.h> #include <dpkg.h> -#include <version.h> void showcopyright(const struct cmdinfo *c, const char *v) { int fd; @@ -34,7 +33,3 @@ void showcopyright(const struct cmdinfo *c, const char *v) { execlp(CAT,CAT,"-",(char*)0); ohshite(_("unable to exec cat for displaying GPL file")); } - -char *libdpkgver(void) { - return DPKG_VERSION; -} diff --git a/main/help.c b/main/help.c index 0c33ccb4b..1c6b3e6f7 100644 --- a/main/help.c +++ b/main/help.c @@ -505,24 +505,3 @@ void ensure_pathname_nonexisting(const char *pathname) { debug(dbg_eachfile,"ensure_pathname_nonexisting running rm -rf"); waitsubproc(c1,"rm cleanup",0); } - -void check_libver (void) { - int c; - if (!strcmp(DPKG_VERSION, libdpkgver())) return; - /* ooh, we have a version mismatch with the library, - * continue, but warn LOUDLY about possible problems. - */ - fprintf(stderr, _("\ -WARNING: A mismatch between dpkg and libdpkg.so has\n\ -been detected. Somehow, your system has a different\n\ -version of dpkg than the library that is uses. This\n\ -may not cause any problems, but it does reflect a\n\ -serious condition. You should really reinstall the dpkg\n\ -package before continuing.\n\ -\n\ -Press 'Q' to exit, any other key to continue: ")); - c= getc(stdin); - if (c == 'q' || c == 'Q') - ohshite(_("Quitting at user request")); - return; -} diff --git a/main/main.c b/main/main.c index a273d1ca4..0a215758b 100644 --- a/main/main.c +++ b/main/main.c @@ -396,8 +396,6 @@ int main(int argc, const char *const *argv) { umask(022); /* Make sure all our status databases are readable. */ - check_libver(); - for (argvs=argv+1; (argp= *argvs) && *argp++=='-'; argvs++) { if (*argp++=='-') { if (!strcmp(argp,"-")) break; |