core: getRepositoryData now get the module in argument

This commit is contained in:
Goffi 2015-03-19 20:40:10 +01:00
commit c2314640ba

View file

@ -17,6 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sat
from sat.core.i18n import _, D_, languageSwitch
from twisted.application import service
from twisted.internet import defer
@ -72,7 +73,7 @@ class SAT(service.Service):
try:
return self._version_cache
except AttributeError:
self._version_cache = u"{} ({})".format(version, utils.getRepositoryData())
self._version_cache = u"{} ({})".format(version, utils.getRepositoryData(sat))
return self._version_cache
else:
return version