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

dpkg: Add --ctrl-tarfile forwarding command for dpkg-deb

Guillem Jover лет назад: 11
Родитель
Сommit
770965969c
3 измененных файлов с 7 добавлено и 2 удалено
  1. 1 0
      debian/changelog
  2. 2 0
      man/dpkg.1
  3. 4 2
      src/main.c

+ 1 - 0
debian/changelog

@@ -123,6 +123,7 @@ dpkg (1.18.0) UNRELEASED; urgency=low
   * Document in man pages the dpkg version when new features were introduced.
   * Document that timestamps are reset for files patched with source format
     “3.0 (quilt)” too.
+  * Add dpkg --ctrl-tarfile forwarding command for dpkg-deb.
 
   [ Raphaël Hertzog ]
   * Drop myself from Uploaders.

+ 2 - 0
man/dpkg.1

@@ -376,6 +376,8 @@ See \fBdpkg\-deb\fP(1) for more information about the following actions.
     package.
 \fB\-f\fP, \fB\-\-field\fP  \fIarchive\fP [\fIcontrol-field\fP...]
     Display control field(s) of a package.
+.BR \-\-ctrl\-tarfile " \fIarchive\fP"
+    Output the control tar-file contained in a Debian package.
 \fB\-\-fsys\-tarfile\fP \fIarchive\fP
     Display the filesystem tar-file contained by a
     Debian package.

+ 4 - 2
src/main.c

@@ -120,8 +120,9 @@ usage(const struct cmdinfo *ci, const char *value)
 "\n"));
 
   printf(_(
-"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"
+"Use dpkg with -b, --build, -c, --contents, -e, --control, -I, --info,\n"
+"  -f, --field, -x, --extract, -X, --vextract, --ctrl-tarfile, --fsys-tarfile\n"
+"on archives (type %s --help).\n"
 "\n"), BACKEND);
 
   printf(_(
@@ -740,6 +741,7 @@ static const struct cmdinfo cmdinfos[]= {
   ACTIONBACKEND( "field",		'f', BACKEND),
   ACTIONBACKEND( "extract",		'x', BACKEND),
   ACTIONBACKEND( "vextract",		'X', BACKEND),
+  ACTIONBACKEND( "ctrl-tarfile",	0,   BACKEND),
   ACTIONBACKEND( "fsys-tarfile",	0,   BACKEND),
   { NULL,                0,   0, NULL,          NULL,      NULL,          0 }
 };