summaryrefslogtreecommitdiff
path: root/dh_install
AgeCommit message (Collapse)AuthorFilesLines
2018-09-14dh_*: Add cli-options NOOP PROMISES for most helpersNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-04dh_install{docs,examples,info,man}: Add missing compat 11 documentationNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-30dh_install: Push some documentation to dh_missing(1)Niels Thykier1-27/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-14dh_install: Fix --exclude of patternsNiels Thykier1-2/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-11Avoid unnecessary load of File::FindNiels Thykier1-1/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-04dh_install: Fix --exclude on entire patternsNiels Thykier1-1/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-04dh_install: Drop obsolete remark about compat 3Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-11dh_install: Push removal of --{list,fail}-missing to c12Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22dh_install: Make autodest work with default_sourcedir != d/tmpNiels Thykier1-5/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-22Dh_Lib: Add stub default_sourcedir functionNiels Thykier1-3/+2
This function does not do anything particularly useful at the moment, but we hope to make it do that in the future. By including it now, other tools can migrate to it easier if/when it becomes useful. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-13dh_install: Disable bulk install optimization on clashesNiels Thykier1-15/+27
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-12Re-instate bug compatibility to fix #867866Niels Thykier1-4/+19
Previous versions of debhelper had "interesting" way of interpreting arguments where it split them on space. This was mistakenly "corrected" in 10.6 when debhelper started to use bsd_glob (that does not split on spaces). To resolve this, manully split arguments like the original code would (effectively) have done so packages are unaffected by it. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-09dh: Support pkgfile and pkgfile-logged PROMISE hintsNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-08dh_install: Bulk install sourcesNiels Thykier1-24/+24
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-07Dh_Lib: Embed tool versions into auto-generated snippetsNiels Thykier1-0/+2
Use $main::VERSION to determine the version of the tool and embed that into auto-generated snippets (e.g. via autoscript). This enables lintian to extract the tool + version and display it on: https://lintian.debian.org/tags/debhelper-autoscript-in-maintainer-scripts.html Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Set Emacs file variables directory-wideSven Joachim1-6/+0
Set the local variables for Emacs in the central placed intended for it, rather than in (currently) 95 individual files. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-30dh_install: Guard optimization in a compat bumpNiels Thykier1-4/+6
It breaks in the following case: "bin/l* bin/*s bin" Assuming debian/tmp/bin contains "ls", then there are now two files to the same location, which makes cp unhappy. It also happens for libindicate, where the it have a gtk-2 and gtk-3 variant of files that happen to clash for similar reasons. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29dh_installman: Support --sourcedir and fallback to d/tmp [c11]Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28dh_install: Outsource globbing to glob_expandNiels Thykier1-25/+14
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-28Refactor handling of $skip_install testsNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-27dh_install: Move loop invariant out of loopNiels Thykier1-6/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_install: Optimize some calls with xargsNiels Thykier1-7/+38
The following are common pattern seen in install files: """ some/path/* some/path/*.foo* """ These patterns all cause dh_install to issue one "cp" per file matched in "some/path" (the first one matching all files in the directory). For patterns with many matches, this triggers a considerable overhead by the number of fork+exec calls. This patch makes dh_install bulk "cp" calls provided that: * The matched files all end in the same destination directory. (which might not be the case for e.g. "foo/*/bar" ) * There are no "--exclude" in play (as that triggers a vastly more complicated case). Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_install: Refactor --autodest handlingNiels Thykier1-2/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_install: Remove duplicate $Niels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_install: Throw away some redundant variablesNiels Thykier1-2/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_install: Refactor handling of autodestNiels Thykier1-16/+11
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-26dh_install: Push some code out of a loopNiels Thykier1-5/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-24dh_install: Use doit instead of systemNiels Thykier1-6/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-04dh_install: Pass --exclude/-X to dh_missing. (Closes: #863447)Iain Lane1-0/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-05-07Fix dh_install's call to dh_missingNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_install: Pass --sourcedir to dh_missingNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_install: Only call dh_missing if necessaryNiels Thykier1-8/+10
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_install: Mark --(list|fail)-missing as deprecatedNiels Thykier1-0/+8
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08log_installed_files: Compute the helper name automaticallyNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08dh_install: Uninstalled files should still failNiels Thykier1-0/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-08Move dh_install’s --{list,fail}-missing to dh_missingMichael Stapelberg1-43/+11
This commit splits dh_install’s --list-missing and --fail-missing functionality into the separate helper dh_missing. To make this work, dh_install logs its source patterns and dh_missing reads these patterns, treating them as installed. This allows us to address #415396, i.e. recognize files installed by other helpers (e.g. dh_installman) as installed. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-02Refactor install_dir usage to avoid the "if -d " testsNiels Thykier1-4/+2
They were not needed in the first place (as "install -d" DTRT). Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-31dh_install: Make d/tmp prefix optional in d/not-installedSven Joachim1-1/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-31dh_install: Clarify that not-installed is not related to --excludeNiels Thykier1-2/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-06-15Remove support for compat 4Niels Thykier1-8/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-03-21dh_install: Fix regression with non-existing filesNiels Thykier1-2/+19
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-03-10dh_install: Improve not-installed documentationNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-05dh_install: Fail late when there were non-existing filesDmitry Shachnev1-3/+13
Print warnings for each glob that did not match anything, and fail after processing all packages if there were any missing files. Closes: #488346 Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-02dh_install: Anchor the d/tmp regexNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-01-02dh_install: Avoid d/tmp/d/tmp/<path> on failureNiels Thykier1-1/+2
If given a glob that starts with d/tmp, which fails to match, then skip the "d/tmp"-fallback. Otherwise we will end up with a duplicated "d/tmp/d/tmp/<path>" and people will think debhelper is broken. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06dh_install*: sort file lists passed to 'cp --parents -p' for reproducibilityNiko Tyni1-2/+4
The order in which the files are copied can affect directory timestamps when copying subdirectory hierarchies. Signed-off-by: Niels Thykier <niels@thykier.net>
2015-09-01dh_install: Read d/not-installed with --list-missingNiels Thykier1-0/+13
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-07-01Migrate to use warnings and use parentNiels Thykier1-1/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-04-30Fix the wording in the dh_install reference to dh_exec.Peter Pentchev1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-04-29dh_install: Document how to use dh-exec to rename filesNiels Thykier1-0/+19
Signed-off-by: Niels Thykier <niels@thykier.net>