X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=3305f695ac4faab639dad148b95f8493b83da8b7;hb=1ef1804c272cf73da57a3e2d1cbf6c7610207ee9;hp=e709788ed39affc9715d518893fba1eb5dabc5df;hpb=a51c070b5347ed9244c7b1db48bc4adb4801d24e;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index e709788e..3305f695 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -528,7 +528,7 @@ def build_file_list(changes, is_a_dsc=0, field="files", hashname="md5sum"): raise NoFilesFieldError # Get SourceFormat object for this Format and validate it - format = get_format_from_string(changes.get['format']) + format = get_format_from_string(changes['format']) format.validate_format(is_a_dsc=is_a_dsc, field=field) includes_section = (not is_a_dsc) and field == "files" @@ -1552,4 +1552,4 @@ def ensure_orig_files(changes, dest_dir, session): os.symlink(src, dest) symlinked.append(dest) - return files + return (exists, symlinked)