~ubuntu-branches/ubuntu/natty/software-center/natty

« back to all changes in this revision

Viewing changes to softwarecenter/enums.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-04-19 20:31:31 UTC
  • Revision ID: james.westby@ubuntu.com-20110419203131-n3l1p78csr3n48xb
Tags: 3.1.26.8
* softwarecenter/log.py:
  - deal with not accessible ~/.cache/software-center directory
    (LP: #688682)
* softwarecenter/paths.py:
  - check for SUDO_USER before xdg is imported, otherwise the
    check has no effect (LP: #688682)
* softwarecenter/{paths,enums}.py, utils/update-software-center-agent:
  - remove unneeded xdg.BaseDirectory import
* utils/update-software-center-agent, softwarecenter/enums.py:
  - remove unused imports, make imports explicit (thanks pyflakes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
19
import os
20
 
import xdg.BaseDirectory
21
20
 
22
21
# pkgname of this app itself (used for "self-awareness", see spec)
23
22
SOFTWARE_CENTER_PKGNAME = 'software-center'
153
152
# delimiter for directory path separator in app-install
154
153
APP_INSTALL_PATH_DELIMITER = "__"
155
154
 
156
 
from version import *
 
155
from version import VERSION, DISTRO, RELEASE, CODENAME
157
156
USER_AGENT="Software Center/%s (N;) %s/%s (%s)" % (VERSION, 
158
157
                                                   DISTRO, 
159
158
                                                   RELEASE,