DH_DPATCH_UNPATCH(1)
π DH_DPATCH_UNPATCH π
okay bestie, so this little icon is a debhelper program β that's the manual name right there, DH_DPATCH_UNPATCH(1), in case the vibe check required receipts. she's here to un-do things. specifically, she un-applies your patches. no cap.
β¨ NAME β¨
dh_dpatch_unpatch β literally just unapply patches listed in debian/patched. that's the whole job description. she's a one-trick pony and she ate. π
πΈ SYNOPSIS πΈ
dh_dpatch_unpatch [debhelper options]
that's it. that's the whole thing. one optional lil argument set. so simple. so clean. π
π¦ DESCRIPTION π¦
okay so here's the tea β β dh_dpatch_unpatch simply calls dpatch deapply-all. like, that's it, that's the entire personality. no extra steps, no hidden agenda, she just hands the work off.
every patch listed in debian/patched gets unapplied in the current directory. your patches? gone. reverted. un-applied. poof. π¨
and here's the bestie behaviour we love to see: the command does not fail if the patches have already been unapplied. she's not gonna yell at you for double-unapplying. she's chill. she's forgiving. she has main character energy and zero grudges. π«Ά
π EXAMPLES π
usually you don't even call her directly β she gets summoned indirectly in a rules file via the dh command. like a ghost who just shows up when you invoke her name.
%:
dh --with dpatch $@
she can also be direcly called in the clean rule. (yes, the original says "direcly". we respect the typo. it's iconic now. π)
clean:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) clean
dh_dpatch_unpatch
dh_clean
look at her, third in line, doing her little unpatch moment before dh_clean sweeps up. queen shit. π
π SEE ALSO π
this program is meant to be used together with debhelper. they're a package deal, fr fr. π
π AUTHOR π
Hideki Yamane <henrich@debian.or.jp> β who, and I quote, stole this from dh_quilt_unpatch, which was written by Raphael Hertzog <hertzog@debian.org>. iconic borrowing behaviour honestly, we love a remix. πβ¨
and that's the whole page, bestie β this one's from perl v5.30.3, dated 2020-09-17, so she's been out here unapplying patches since before some of us could even read. respect the elders. ππ¦β¨
π¦ where this page comes from
- ubuntu jammy: dpatch 2.0.41 Β· 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