diff options
author | Guillem Jover <guillem@debian.org> | 2015-07-31 17:40:10 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-08-03 01:19:46 +0200 |
commit | 2b5045c492fd4f1f0f6f3114e7b444014fe446c4 (patch) | |
tree | b0621f3fb8d3e883c835e4de36caedb3456c6531 /scripts/dpkg-source.pl | |
parent | 14dff6e0c34443bcc0be402627549d891df4813b (diff) | |
download | dpkg-2b5045c492fd4f1f0f6f3114e7b444014fe446c4.tar.gz |
dpkg-source: Add an optional essential=yes key/value to Package-List
This makes this information available in the Sources package files, so
that when bootstrapping a new architecture all Essential:yes packages
are known in advance.
Prompted-by: Helmut Grohne <helmut@subdivi.de>
Diffstat (limited to 'scripts/dpkg-source.pl')
-rwxr-xr-x | scripts/dpkg-source.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dpkg-source.pl b/scripts/dpkg-source.pl index e0b8b8ef4..9aeec135d 100755 --- a/scripts/dpkg-source.pl +++ b/scripts/dpkg-source.pl @@ -297,6 +297,10 @@ if ($options{opmode} =~ /^(build|print-format|(before|after)-build|commit)$/) { $pkg_summary .= " profile=$profile"; } + if (defined $pkg->{'Essential'} and $pkg->{'Essential'} eq 'yes') { + $pkg_summary .= ' essential=yes'; + } + push @pkglist, $pkg_summary; push @binarypackages, $p; foreach (keys %{$pkg}) { |