Scroll to navigation

DEBPATCH(1) General Commands Manual DEBPATCH(1)

NOM

debpatch - apply a debdiff to a Debian source package

SYNOPSIS

debpatch [options] [orig_dsc_or_dir] [patch_file]
debpatch [options] < [patch_file]

DESCRIPTION

debpatch takes a patchfile that describes the differences between two Debian source packages old and new, and applies it to a target Debian source package orig.

orig could either be the same as old or it could be different. patchfile is expected to be a unified diff between two Debian source trees, as what debdiff(1) normally generates.

Any changes to debian/changelog are dealt with specially, to avoid the conflicts that changelog diffs typically produce when applied naively. The exact behaviour may be tweaked in the future, so one should not rely on it.

If patchfile does not apply to orig, even after the special-casing of debian/changelog, no changes are made and debpatch(1) will exit with a non-zero error code.

ARGUMENTS

Target to apply the patch to. This can either be an unpacked source tree, or a .dsc file. In the former case, the directory is modified in-place; in the latter case, a second .dsc is created. Default: .
Patch file to apply, in the format output by debdiff(1). Default: /dev/stdin

OPTIONS

show this help message and exit
Output more information
Path to debian/changelog; default: debian/changelog
Distribution to use, if the patch doesn't already contain a changelog; default: experimental
Run the python REPL after processing.
Don't apply the patch; instead print out the version of the package that it is supposed to be applied to, or nothing if the patch does not specify a source version.
Don't apply the patch; instead print out the new version of the package debpatch(1) would generate, when the patch is applied to the the given target package, as specified by the other arguments.

For .dsc patch targets:

Don't clean temporary directories after a failure, so you can examine what failed.
If the building of the new source package fails, try to refresh patches using quilt(1) then try building it again.
Extract the .dsc into this directory, which won't be cleaned up after debpatch(1) exits. If not given, then it will be extracted to a temporary directory.

AUTEURS

debpatch and this manual page were written by Ximin Luo <infinity0@debian.org>

Toutes deux sont publiées sous la GNU General Public License, version 3 ou suivante.

VOIR AUSSI

debdiff(1)

TRADUCTION

Ce document est une traduction, maintenue à l'aide de l'outil po4a <https://po4a.alioth.debian.org/> par l'équipe de traduction francophone du projet Debian.

Nicolas François, Guillaume Delacour, Cyril Brulebois, Thomas Huriaux et David Prévot ont réalisé cette traduction.

L'équipe de traduction a fait le maximum pour réaliser une adaptation française de qualité. Veuillez signaler toute erreur de traduction en écrivant à <debian-l10n-french@lists.debian.org> ou par un rapport de bogue sur le paquet devscripts.

La version anglaise la plus à jour de ce document est toujours consultable en ajoutant l'option « -L C » à la commande man.

Utilitaires Debian DEBIAN