def stale_yum_transactions_exist()

in dcrpm/dcrpm.py [0:0]


    def stale_yum_transactions_exist(self):
        # type: () -> bool
        """
        Detects whether there are stale yum transactions in /var/lib/yum.
        """
        return any(
            fnmatch(str(f), self.YUM_TRANSACTION_BASE)
            for f in os.listdir(self.YUM_PATH)
        )