DH_DPATCH_UNPATCH(1)

πŸ“¦ version 2.0.41, in ubuntu jammy

πŸ’– 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