Logo Search packages:      
Sourcecode: yum-utils version File versions  Download package

def package-cleanup::PackageCleanup::_remove_old_dupes (   self ) [private]
add older duplicate pkgs to be removed in the transaction

Definition at line 202 of file package-cleanup.py.

                               :
        """add older duplicate pkgs to be removed in the transaction"""
        dupedict = self._find_installed_duplicates()

        removedupes = []
        for (name,dupelists) in dupedict.items():
            for dupelist in dupelists:
                dupelist.sort()
                for lowpo in dupelist[0:-1]:
                    removedupes.append(lowpo)

        for po in removedupes:
            self.remove(po)



Generated by  Doxygen 1.6.0   Back to index