Exemple #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 Msg.human_infos(infos)
Exemple #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)
Exemple #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)
Exemple #4
0
	def __str__(self):
		return Msg.human_infos(self.infos)