};
};
-Import-Keyring
-{
- /srv/keyring.debian.org/keyrings/debian-maintainers.gpg
- {
- Debian-Maintainer "true";
- };
-};
-
Import-LDAP-Fingerprints
{
LDAPDn "ou=users,dc=debian,dc=org";
Bcc "removed-packages@qa.debian.org";
};
-Import-Archive
-{
- ExportDir "/srv/ftp-master.debian.org/dak/import-archive-files/";
-};
-
-Import-Keyring
-{
- /srv/keyring.debian.org/keyrings/debian-maintainers.gpg
- {
- Debian-Maintainer "true";
- };
-};
-
Import-LDAP-Fingerprints
{
LDAPDn "ou=users,dc=debian,dc=org";
################################################################################
-def extract_component_from_section(section):
+def extract_component_from_section(section, session=None):
component = ""
if section.find('/') != -1:
# Expand default component
if component == "":
- comp = get_component(section)
+ comp = get_component(section, session)
if comp is None:
component = "main"
else:
- component = comp.componant_name
+ component = comp.component_name
return (section, component)
"""
def assertExtract(self, input, output):
+ self.setup_components()
self.assertEqual(
- extract_component_from_section(input)[1],
+ extract_component_from_section(input, self.session)[1],
output,
)