X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fgenerate_filelist.py;h=1f4d665495ed21497b421f2d8ea5d4c7b6080570;hb=c8f5ceb0d998bd7bfe54744731a26b9762acb389;hp=dcf6864ff72412e98b3797b908eb49213e70de74;hpb=4689163b3fcfaf6ec71bcf321e4245ace8d6879a;p=dak.git diff --git a/dak/generate_filelist.py b/dak/generate_filelist.py index dcf6864f..1f4d6654 100755 --- a/dak/generate_filelist.py +++ b/dak/generate_filelist.py @@ -41,7 +41,7 @@ from daklib.threadpool import ThreadPool from daklib import utils import apt_pkg, os, stat, sys -from daklib.lists import getSources, getBinaries +from daklib.lists import getSources, getBinaries, getArchAll def listPath(suite, component, architecture = None, type = None, incremental_mode = False): @@ -74,6 +74,17 @@ def writeSourceList(args): session.close() file.close() +def writeAllList(args): + (suite, component, architecture, type, incremental_mode) = args + (file, timestamp) = listPath(suite, component, architecture, type, + incremental_mode) + session = DBConn().session() + for _, filename in getArchAll(suite, component, architecture, type, + session, timestamp): + file.write(filename + '\n') + session.close() + file.close() + def writeBinaryList(args): (suite, component, architecture, type, incremental_mode) = args (file, timestamp) = listPath(suite, component, architecture, type, @@ -144,7 +155,14 @@ def main(): elif architecture.arch_string == 'source': threadpool.queueTask(writeSourceList, (suite, component, Options['Incremental'])) - elif architecture.arch_string != 'all': + elif architecture.arch_string == 'all': + threadpool.queueTask(writeAllList, + (suite, component, architecture, 'deb', + Options['Incremental'])) + threadpool.queueTask(writeAllList, + (suite, component, architecture, 'udeb', + Options['Incremental'])) + else: # arch any threadpool.queueTask(writeBinaryList, (suite, component, architecture, 'deb', Options['Incremental']))