# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 James Troup <james@nocrew.org>
# This program is free software; you can redistribute it and/or modify
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 James Troup <james@nocrew.org>
# This program is free software; you can redistribute it and/or modify
package = control.Find("Package", "")
source = control.Find("Source", package)
if source.find("(") != -1:
package = control.Find("Package", "")
source = control.Find("Source", package)
if source.find("(") != -1:
source = m.group(1)
# If it's a binary, we need to also rename the file to include the architecture
version = control.Find("Version", "")
architecture = control.Find("Architecture", "")
if package == "" or version == "" or architecture == "":
daklib.utils.fubar("%s: couldn't determine required information to rename .deb file." % (legacy_filename))
source = m.group(1)
# If it's a binary, we need to also rename the file to include the architecture
version = control.Find("Version", "")
architecture = control.Find("Architecture", "")
if package == "" or version == "" or architecture == "":
daklib.utils.fubar("%s: couldn't determine required information to rename .deb file." % (legacy_filename))
Cnf = daklib.utils.get_conf()
for i in ["help", "limit", "no-action", "verbose" ]:
Cnf = daklib.utils.get_conf()
for i in ["help", "limit", "no-action", "verbose" ]:
Arguments = [('h',"help","Poolize::Options::Help"),
Arguments = [('h',"help","Poolize::Options::Help"),