non-free;
};
- CodeName "lenny-backports";
OverrideCodeName "lenny-backports";
Priority "7";
NotAutomatic "yes";
non-free;
};
- CodeName "squeeze-backports";
OverrideCodeName "squeeze-backports";
Priority "7";
NotAutomatic "yes";
contrib;
non-free;
};
- CodeName "lenny";
OverrideCodeName "lenny";
Priority "5";
ChangeLogBase "dists/stable/";
CopyChanges "dists/proposed-updates/";
CopyDotDak "/srv/ftp-master.debian.org/queue/proposed-updates/";
CommentsDir "/srv/ftp-master.debian.org/queue/p-u-new/COMMENTS/";
- CodeName "lenny-proposed-updates";
OverrideCodeName "lenny";
OverrideSuite "stable";
ValidTime 604800; // 7 days
contrib;
non-free;
};
- CodeName "squeeze";
OverrideCodeName "squeeze";
ValidTime 604800; // 7 days
Priority "5";
contrib;
non-free;
};
- CodeName "squeeze-proposed-updates";
OverrideCodeName "squeeze";
OverrideSuite "testing";
ValidTime 604800; // 7 days
contrib;
non-free;
};
- CodeName "squeeze-volatile";
OverrideCodeName "squeeze";
OverrideSuite "testing";
ValidTime 604800; // 7 days
contrib;
non-free;
};
- CodeName "sid";
OverrideCodeName "sid";
ValidTime 604800; // 7 days
Priority "7";
contrib;
non-free;
};
- CodeName "experimental";
NotAutomatic "yes";
OverrideCodeName "sid";
OverrideSuite "unstable";
pass
print "Processing %s%s..." % (osuite, originremark)
+ suiteobj = get_suite(osuite)
# Get a list of all suites that use the override file of 'osuite'
- ocodename = cnf["Suite::%s::codename" % osuite].lower()
- suites = []
- suiteids = []
- for suite in cnf.SubTree("Suite").List():
- if ocodename == cnf["Suite::%s::OverrideCodeName" % suite].lower():
- suites.append(suite)
- s = get_suite(suite.lower(), session)
- if s is not None:
- suiteids.append(s.suite_id)
-
- if len(suiteids) != len(suites) or len(suiteids) < 1:
- utils.fubar("Couldn't find id's of all suites: %s" % suites)
+ ocodename = suiteobj.codename
+ suiteids = [x.suite_id for x in session.query(Suite).filter(Suite.overridecodename == ocodename).all()]
+
+ if len(suiteids) < 1:
+ utils.fubar("Couldn't find id's of all suites: %s" % suiteids)
for component in cnf.SubTree("Component").List():
# It is crucial for the dsc override creation based on binary