示例#1
0
文件: repo.py 项目: Auston/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 Msg.human_infos(infos)
示例#2
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 Msg.human_infos(infos)
示例#3
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 Msg.human_infos(infos)
示例#4
0
	def __str__(self):
		return Msg.human_infos(self.infos)