DH_QUILT_UNPATCH(1)
β¨ DH_QUILT_UNPATCH β¨
okay bestie, welcome to the dh_quilt_unpatch page from the Debhelper manual π this lil guy is the unapply the patches button and honestly? it's giving calm, collected, unbothered. let's get into it π«Ά
πΈ NAME πΈ
dh_quilt_unpatch β unapply patches listed in debian/patches/series π
π SYNOPSIS π
dh_quilt_unpatch [debhelper options]
π¦ DESCRIPTION π¦
so here's the whole vibe: dh_quilt_unpatch simply calls quilt pop -a after having set the environment variable QUILT_PATCHES to debian/patches. that's it. that's the whole personality β¨
after that, all patches listed in debian/patches/series are then unapplied in the current directory. no drama, no fuss, just popping them all off like π
and here's the sweet part: the command does not fail if the patches have already been unapplied. so if you run it twice, it's not gonna be weird about it. it's secure in itself like that π
if the file debian/patches/series does not exist or is empty, dh_quilt_unpatch returns without doing anything. literally just vibes, no action taken π
oh and you're not locked into debian/patches if you don't want to be β you can use another directory instead of debian/patches by setting (and exporting) the environment variable QUILT_PATCH_DIR. set it AND export it, bestie, don't skip the export, i'm serious π
π EXAMPLES π
dh_quilt_unpatch is usually called indirectly in a rules file via the dh command, like so:
%:
dh $@ --with quilt
it can also be directly called in the clean rule. iconic behavior honestly π
clean:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) clean
dh_quilt_unpatch
dh_clean
π NOTES π
heads up: this tool is useless if you use the source package format 3.0 (quilt). like, actually useless. not a single thing it can do for you there π
consider switching to this source format if you haven't done it yet. that's the assignment, bestie π
β SEE ALSO β
this program is meant to be used together with debhelper. they're a package deal, iykyk π«Ά
π AUTHOR π
Raphael Hertzog <hertzog@debian.org> β thank you for your service, legend π
and that's the whole page, bestie!! this was perl v5.40.1, dated 2026-01-23, and it's the DH_QUILT_UNPATCH(1) manual page β slay, ate, no crumbs, periodt π
β¨πΈ
π¦ where this page comes from
- ubuntu resolute: quilt 0.69-0.1 Β· GPL-2.0-or-later
- ubuntu stonking: quilt 0.69-0.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms