Signed-off-by: Mark Hymers <mhy@debian.org>
if not dryrun:
try:
s = d.session()
- s.begin()
a = Architecture()
a.arch_string = str(args[2]).lower()
a.description = str(args[3])
if not dryrun:
try:
s = d.session()
- s.begin()
a = get_architecture(args[2].lower(), s)
if a is None:
die("E: Cannot find architecture %s" % args[2])
if not dryrun:
try:
- s.begin()
sa = SuiteArchitecture()
sa.arch_id = arch.arch_id
sa.suite_id = suite.suite_id
s = d.session()
if not dryrun:
try:
- s.begin()
sa = get_suite_architecture(args[2].lower(), args[3].lower(), s)
if sa is None:
die("E: can't find suite-architecture entry for %s, %s" % (args[2].lower(), args[3].lower()))
self.db_meta.bind = self.db_pg
self.db_smaker = sessionmaker(bind=self.db_pg,
autoflush=True,
- autocommit=True)
+ autocommit=False)
self.__setuptables()
self.__setupmappers()