def __str__(self): """ Return a nice string with some repo infos """ infos = {"location": self._path, "packages": self.size} if isfile(self._db): infos["last update"] = round(stat(self._db).st_mtime) return Humanizer.info(infos)
def __str__(self): """ Returns a nice string with some repo info """ info = {"location": self._path, "packages": len(self), "pgpsig": isfile(self._db + Repo.SIGEXT)} try: info["last update"] = round(getctime(self._db)) except: info["last update"] = "-" return Humanizer.info(info)
def __str__(self): ''' Returns a nice string with some repo info ''' info = { 'location': self._path, 'packages': len(self), 'pgpsig': isfile(self._db + Repo.SIGEXT) } try: info['last update'] = round(getctime(self._db)) except: info['last update'] = '-' return Humanizer.info(info)
def __str__(self): return Humanizer.info(self.info)
def __str__(self): return Humanizer.info(self.infos)