예제 #1
0
파일: repo.py 프로젝트: feuri/local-repo
    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
파일: repo.py 프로젝트: managarm/local-repo
    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
파일: repo.py 프로젝트: yunchih/local-repo
    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
파일: package.py 프로젝트: feuri/local-repo
	def __str__(self):
		return Humanizer.info(self.infos)