Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
    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)
Пример #4
0
 def __str__(self):
     return Humanizer.info(self.info)
Пример #5
0
	def __str__(self):
		return Humanizer.info(self.infos)