X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=94737d227277df891c618d40cf0672404fbb77ac;hb=33233a41d742249ceb0c816c15f2850970ba3634;hp=3ae8d289cd14c84d3abee8b355849fb01d4fa64e;hpb=f2c4736fc1b4de2ea09b7e09518abd79ed682c64;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 3ae8d289..94737d22 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -155,11 +155,7 @@ def extract_component_from_section(section, session=None): # Expand default component if component == "": - comp = get_component(section, session) - if comp is None: - component = "main" - else: - component = comp.component_name + component = "main" return (section, component) @@ -1058,7 +1054,7 @@ def arch_compare_sw (a, b): ################################################################################ -def split_args (s, dwim=1): +def split_args (s, dwim=True): """ Split command line arguments which can be separated by either commas or whitespace. If dwim is set, it will complain about string ending