tiffani and SuiteSuffix
Hi,
during my todays deployment of tiffani on secure-testing.debian.net, I
noticed that she doesn't work with SuiteSuffixes, as the SuiteSuffix
will be twice for access to the packages-file. So, I did the following
changes:
--- ../tiffani 2005-03-05 00:48:04.000000000 +0000
+++ tiffani 2005-09-19 12:53:47.000000000 +0000
@@ -209,7 +209,7 @@
(oldext, oldstat) = smartstat(oldfile)
(origext, origstat) = smartstat(origfile)
if not origstat:
- print "doesn't exist"
+ print "doesn't exist %s" % (origfile)
return
if not oldstat:
print "initial run"
@@ -341,8 +341,10 @@
tree = SuiteBlock.get("Tree", "dists/%s" % (longsuite))
if AptCnf.has_key("tree::%s" % (tree)):
+ sections = AptCnf["tree::%s::Sections" % (tree)].split()
pass
elif AptCnf.has_key("bindirectory::%s" % (tree)):
+ sections = AptCnf["bindirectory::%s::Sections" % (tree)].split()
pass
else:
aptcnf_filename = os.path.basename(utils.which_apt_conf_file());
@@ -362,7 +364,7 @@
genchanges(Options, file + ".diff", storename, file, \
Cnf.get("Suite::%s::Tiffani::Maxdiffs::Contents" % (suite), maxcontents))
- for component in components:
+ for component in sections:
if architecture == "source":
longarch = architecture
packages = "Sources"
I didn't check how it works with bindirectory-apt-entries - perhaps it
should be there rather sections = components or so. If however
components is not used anymore except for the longsuite option, than the
code could be shortened a bit there.
Cheers,
Andi
Reply to: