Beispiel #1
0
    def setup_files(self, files):
        self.files = files

        (savedir, newdir) = U.conflicts_dirs(self.name)

        self.conflicts = B.Bunch(
            savedir=savedir, newdir=newdir, files=[f for f in files if "conflicts" in f and f.conflicts]
        )

        self.not_conflicts = B.Bunch(files=[f for f in files if f not in self.conflicts.files])

        self.distdata = U.sort_out_paths_by_dir(f.install_path for f in files if f.isfile())
Beispiel #2
0
 def __init__(self, name, rpmdb_path=None):
     """
     :param name: The name of this package to be built.
     """
     self.name = name
     (self.savedir, self.newdir) = U.conflicts_dirs(name)
Beispiel #3
0
 def setUp(self):
     pname = "foo"
     self.modifier = RpmConflictsModifier(pname)
     (self.savedir, self.newdir) = U.conflicts_dirs(pname)