ALCLog.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # vim:set fileencoding=utf-8 et ts=4 sts=4 sw=4:
  2. #
  3. # apt-listchanges - Show changelog entries between the installed versions
  4. # of a set of packages and the versions contained in
  5. # corresponding .deb files
  6. #
  7. # Copyright (C) 2016 Robert Luberda <robert@debian.org>
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public
  20. # License along with this program; if not, write to the Free
  21. # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. # MA 02111-1307 USA
  23. #
  24. import sys
  25. from ALChacks import _
  26. def error(msg):
  27. print(_("apt-listchanges: %(msg)s") % {'msg': msg}, file=sys.stderr);
  28. def warning(msg):
  29. print(_("apt-listchanges warning: %(msg)s") % {'msg': msg}, file=sys.stderr);
  30. def info(msg):
  31. print(_("apt-listchanges: %(msg)s") % {'msg': msg}, file=sys.stdout);
  32. def debug(msg):
  33. print(msg, file=sys.stdout);