def rebuild_db()

in dcrpm/rpmutil.py [0:0]


    def rebuild_db(self):
        # type: () -> None
        """
        Runs `rpm --rebuilddb`.
        """
        try:
            run_with_timeout(
                [self.rpm_path, "--dbpath", self.dbpath, "--rebuilddb"],
                REBUILD_TIMEOUT_SEC,
            )
        except DcRPMException:
            self.status_logger.warning("rebuild_tables_failed")
            raise