~ubuntu-branches/ubuntu/raring/software-center/raring-proposed

« back to all changes in this revision

Viewing changes to utils/update-software-center-agent

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-06 17:30:50 UTC
  • Revision ID: package-import@ubuntu.com-20121206173050-n7mxi5fzlsvtdh9l
Tags: 5.5.2
* lp:~mvo/software-center/fix-pygobject-deprecation-warnings:
  - fix deprecation warninings with the latest python-gi
* lp:~mvo/software-center/minor-logging-fixes:
  - drop some LOG.info() messages to LOG.debug() to spam the user
    less
* lp:~mvo/software-center/trivial-close-ui-tweak:
  - hide the main window immediately when closing down
* lp:~mvo/software-center/5.4-fix-save-person-to-config:
  - This branch ensures that the "username" is saved everytime
    that the ubuntu sso whoami call is done
* lp:~mvo/software-center/use-dpkg-builddeps:
  - use dpkg-checkbuilddeps to find test-dependencies
* lp:~mvo/software-center/update-sc-cmdline-flexibility:
  - update-software-center-agent: 
    + add --target-db-path commandline
  - update-software-center: 
    + add --app-install-desktop-dir and --target-db-path commandline
* lp:~mvo/software-center/raring-pep8:
  - fixes for new pep8

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                      help="ignore the local cache when updating")
59
59
    parser.add_option("--datadir", "", default=None)
60
60
    parser.add_option("--pretend-distro", "", default=None)
 
61
    parser.add_option("--target-db-path", "",
 
62
                      default=XAPIAN_BASE_PATH_SOFTWARE_CENTER_AGENT)
 
63
 
61
64
    (options, args) = parser.parse_args()
62
65
 
63
66
    logging.basicConfig(level=logging.INFO)
78
81
    cache = apt.Cache(memonly=True)
79
82
 
80
83
    # setup path
81
 
    pathname = XAPIAN_BASE_PATH_SOFTWARE_CENTER_AGENT+".tmp"
 
84
    pathname = options.target_db_path + ".tmp"
 
85
 
82
86
    if not os.path.exists(pathname):
83
87
        try:
84
88
            os.makedirs(pathname)