def METHOD_NAME():
    info = common.get_info()
    root = common.get_root()
    debs = list()
    for package in root.iter('package'):
        pkg = package.attrib['name']
        if pkg == 'MDSplus':
            info['packagename'] = ""
        else:
            info['packagename'] = "-%s" % pkg
        info['description'] = package.attrib['description']
        info['tmpdir'] = tempfile.mkdtemp()
        try:
            os.mkdir("%(tmpdir)s/DEBIAN" % info)
            includes = list()
            for inc in package.iter('include'):
                for inctype in inc.attrib:
                    include = inc.attrib[inctype]
                    if inctype != "dironly":
                        includes.append(include)
            excludes = list()
            for exc in package.iter('exclude'):
                for exctype in exc.attrib:
                    excludes.append(exc.attrib[exctype])
            if package.find("exclude_staticlibs") is not None:
                excludes.append("/usr/local/mdsplus/lib/*.a")
            if package.find("include_staticlibs") is not None:
                includes.append("/usr/local/mdsplus/lib/*.a")
            files = getPackageFiles(info['buildroot'], includes, excludes)
            for f in files:
                filepath = f.replace('\\', '\\\\').replace("'", "\\'")
                relpath = filepath[len(info['buildroot'])+1:]
                target = "%s/%s/" % (info['tmpdir'], os.path.dirname(relpath))
                if subprocess.Popen("mkdir -p '%s'&&cp -a '%s' '%s'" % (target, filepath, target), shell=True).wait() != 0:
                    for k, v in info.items():
                        print("%s=%s" % (k, v))
                    print("filepath=" % filepath)
                    print("target=" % target)
                    raise Exception("Error building deb")
                sys.stdout.flush()
            depends = list()
            for require in package.iter("requires"):
                if 'external' in require.attrib:
                    pkg = common.external_package(
                        info, root, require.attrib['package'])
                    if pkg is not None:
                        depends.append(pkg)
                else:
                    depends.append(
                        "mdsplus%s-%s" % (info['bname'], require.attrib['package'].replace('_', '-')))
            if len(depends) == 0:
                info['depends'] = ''
            else:
                info['depends'] = "\nDepends: %s" % ','.join(depends)
            info['name'] = info['packagename'].replace('_', '-')
            f = open("%(tmpdir)s/DEBIAN/control" % info, "w")
            f.write("""Package: mdsplus%(bname)s%(name)s