Просмотр исходного кода

scripts/dpkg-divert.pl: fix typo in usage message
main/help.c: mangle argv[0] in do_script to always be the full path
include/dpkg-db.h: include string.h so things compile on ia64
scripts/dpkg-architecture.pl: add ia64

Wichert Akkerman лет назад: 25
Родитель
Сommit
e2cb8442cb
7 измененных файлов с 15 добавлено и 2 удалено
  1. 7 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 0
      include/dpkg-db.h
  4. 1 0
      main/help.c
  5. 1 0
      scripts/dpkg-architecture.pl
  6. 1 1
      scripts/dpkg-divert.pl
  7. 1 1
      scripts/dpkg-source.pl

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+Fri Feb 23 10:22:02 CET 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-divert.pl: fix typo in usage message
+  * main/help.c: mangle argv[0] in do_script to always be the full path
+  * include/dpkg-db.h: include string.h so things compile on ia64 
+  * scripts/dpkg-architecture.pl: add ia64
+
 Thu Feb 15 11:24:46 EST 2001 Ben Collins <bcollins@debian.org>
 
   * utils/Makefile.in: Do not use libopt.a, since libdpkg.a not includes those

+ 3 - 0
debian/changelog

@@ -19,6 +19,9 @@ dpkg (1.9.0) unstable; urgency=low
     Closes: Bug#82797
   * Fix manpage for dpkg-gencontrol. Fies: Bug#84625
   * Use POSIX glob instead of regexp in debian/rules. Closes: Bug#84582
+  * fix typo in usage message for dpkg-divert, Closes: Bug#85977
+  * Use full path for argv[0] when calling scripts. Closes: Bug#68783
+  * Add ia64 support to dpkg-architecture.
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 

+ 1 - 0
include/dpkg-db.h

@@ -24,6 +24,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 struct versionrevision {
   unsigned long epoch;

+ 1 - 0
main/help.c

@@ -260,6 +260,7 @@ static int do_script(const char *pkg, const char *scriptname, const char *script
   c1= m_fork();
   if (!c1) {
     scriptexec= preexecscript(scriptpath,arglist);
+    arglist[0]=scriptexec;
     execv(scriptexec,arglist);
     ohshite(desc,name);
   }

+ 1 - 0
scripts/dpkg-architecture.pl

@@ -61,6 +61,7 @@ require 'controllib.pl';
 	    'hppa',      'hppa-linux',
 	    'hurd-i386', 'i386-gnu',
 	    's390',	 's390-linux',
+	    'ia64',	 'ia64-linux',
 	    'openbsd-i386', 'i386-openbsd'
 	    'freebsd-i386', 'i386-freebsd');
 

+ 1 - 1
scripts/dpkg-divert.pl

@@ -25,7 +25,7 @@ Usage:
  dpkg-divert [options] [--add] <file>               - add a diversion
  dpkg-divert [options] --remove <file>              - remove the diversion
  dpkg-divert [options] --list [<glob-pattern>]      - show file diversions
- dpkg-divert [options] --truname <file>             - return the diverted file
+ dpkg-divert [options] --truename <file>            - return the diverted file
 
 Options: 
     --package <package>        name of the package whose copy of <file>

+ 1 - 1
scripts/dpkg-source.pl

@@ -936,8 +936,8 @@ sub extracttar {
     defined($c2= fork) || &syserr("fork for tar -xkf -");
     if (!$c2) {
         open(STDIN,"<&GZIP") || &syserr("reopen gzip for tar -xkf -");
-        chdir("$dirchdir") || &syserr("cannot chdir to \`$dirchdir' for tar extract");
         &cpiostderr;
+        chdir("$dirchdir") || &syserr("cannot chdir to \`$dirchdir' for tar extract");
         exec('tar','-xkf','-'); &syserr("exec tar -xkf -");
     }
     close(GZIP);