def METHOD_NAME(label, rpm, srpm):
    if rpm == None:
        return
    location = os.path.join(TreeLocation, label, 'RPMS', os.path.basename(rpm))
    dir, file = os.path.split(location)
    if not os.path.exists(dir):
        os.makedirs(dir, 0755)
    if not os.path.exists(location):
        os.symlink(rpm, location)
    if srpm == None:
        return
    location = os.path.join(TreeLocation, label, 'SRPMS',
                            os.path.basename(srpm))
    dir, file = os.path.split(location)
    if not os.path.exists(dir):
        os.makedirs(dir, 0755)
    if not os.path.exists(location):
        os.symlink(srpm, location)