Ben Collins пре 27 година
родитељ
комит
6ffb7b501e
5 измењених фајлова са 5 додато и 32 уклоњено
  1. 5 3
      debian/rules
  2. 0 1
      include/dpkg.h.in
  3. 0 5
      lib/showcright.c
  4. 0 21
      main/help.c
  5. 0 2
      main/main.c

+ 5 - 3
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)

+ 0 - 1
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 */

+ 0 - 5
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;
-}

+ 0 - 21
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;
-}

+ 0 - 2
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;