The following commit has been merged in the master branch:
commit c6e64aafd1eeacfd94d705af72b617cfa1bc3466
Author: Raphaël Hertzog <[email protected]>
Date: Thu Oct 1 21:48:14 2009 +0200
Dpkg::Control::Fields: add Priority and Section fields to CTRL_APT_SRC
Both fields are allowed in Sources files, they are generated by
dpkg-scansources or apt-ftparchive based on the override files.
diff --git a/scripts/Dpkg/Control/Fields.pm b/scripts/Dpkg/Control/Fields.pm
index 7b08dd3..94475e5 100644
--- a/scripts/Dpkg/Control/Fields.pm
+++ b/scripts/Dpkg/Control/Fields.pm
@@ -167,7 +167,7 @@ our %FIELDS = (
dep_order => 1,
},
'Priority' => {
- allowed => CTRL_INFO_SRC | ALL_PKG,
+ allowed => CTRL_INFO_SRC | CTRL_APT_SRC | ALL_PKG,
},
'Provides' => {
allowed => ALL_PKG,
@@ -185,7 +185,7 @@ our %FIELDS = (
dep_order => 8,
},
'Section' => {
- allowed => CTRL_INFO_SRC | ALL_PKG,
+ allowed => CTRL_INFO_SRC | CTRL_APT_SRC | ALL_PKG,
},
'Size' => {
allowed => CTRL_APT_PKG,
@@ -309,6 +309,7 @@ $FIELD_ORDER{CTRL_APT_PKG()} = [
@{$FIELD_ORDER{CTRL_PKG_DEB()}} ];
$FIELD_ORDER{CTRL_APT_SRC()} = [ @{$FIELD_ORDER{CTRL_PKG_SRC()}} ];
@{$FIELD_ORDER{CTRL_APT_SRC()}} = map { $_ eq "Source" ? "Package" : $_ }
@{$FIELD_ORDER{CTRL_PKG_SRC()}};
+&field_insert_after(CTRL_APT_SRC, "Version", "Priority", "Section");
&field_insert_before(CTRL_APT_SRC, "Checksums-Md5", "Directory");
# Register vendor specifics fields
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]