This file is indexed.

/usr/bin/dh_migrations is in dh-migrations 0.2.1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/perl -w

=head1 NAME

dh_migrations - install session migration files into package build directories

=cut

use strict;
use File::Find;
use Debian::Debhelper::Dh_Lib;

=head1 SYNOPSIS

B<dh_migrations> [S<B<debhelper options>>] [B<-n>]

=head1 DESCRIPTION

B<dh_migrationis> is a debhelper program that is responsible for
installing B<session migration> files used by session-migratoin helper
into package build directories and add a dependency of the package on
session-migration.

This helper will add in ${misc:Depends} the session-migration tool as a dependency of the 
targeted package.

Use the --with migrations sequence for debhelper 8+.

=head1 FILES

=over 4

=item debian/I<package>.migrations

List the files and migration scripts to install into each package. The format is a set of lines,
where each line lists a script file to install into into usr/share/session-migration/scripts
in the package build directory.

The name of the files (or directories) to install should be given relative to the current directory.

=back

=head1 OPTIONS

=cut

init();

foreach my $package (@{$dh{DOPACKAGES}}) {
	my $tmp=tmpdir($package);
	my $file=pkgfile($package,"migrations");
	my @scripts;

	@scripts=filearray($file, ".") if $file;

	if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
		push @scripts, @ARGV;
	}

	foreach my $script (@scripts) {
		if (! -d "$tmp/usr/share/session-migration/scripts") {
			doit("install","-d","$tmp/usr/share/session-migration/scripts");
		}
		doit("install","-p","-m755",$script,"$tmp/usr/share/session-migration/scripts");		
	}

    if (@scripts) {
		addsubstvar($package, "misc:Depends", "session-migration");
	}
}

=head1 SEE ALSO

L<debhelper(7)>
L<session-migration(1)>

=head1 AUTHOR

Didier Roche <didrocks@ubuntu.com>

Copyright (C) 2012 Canonical Ltd., licensed under the GNU GPL v3 or later.

=cut