~free.ekanayaka/landscape-client/karmic-1.5.4-0ubuntu0.9.10.0

« back to all changes in this revision

Viewing changes to landscape/package/changer.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-12-16 10:50:05 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091216105005-bmki8i2of1dmcdkc
Tags: 1.4.0-0ubuntu0.9.10.0
* New upstream release (LP: #497351)

* Bug fixes:
  - Fix landscape daemons fail to start when too many groups are
    available (LP: #456124)
  - Fix landscape programs wake up far too much. (LP: #340843)
  - Fix Package manager fails with 'no such table: task' (LP #465846)
  - Fix test suite leaving temporary files around (LP #476418)
  - Fix the 1hr long wait for user data to be uploaded following a
    resynchronisation (LP #369000)

* Add support for Ubuntu release upgrades:
  - Add helper function to fetch many files at once (LP: #450629)
  - Handle release-upgrade messages in the packagemanager
    plugin (LP: #455217)
  - Add a release-upgrader task handler (LP: #462543)
  - Support upgrade-tool environment variables (LP: #463321)

* Add initial support for Smart package locking:
  - Detect and report changes about Smart package locks (#488108)

* Packaging fixes:
  - Turn unnecessary Pre-Depends on python-gobject into a regular Depends
  - If it's empty, remove /etc/landscape upon purge

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
                if os.getuid() == 0:
55
55
                    os.setgid(grp.getgrnam("landscape").gr_gid)
56
56
                    os.setuid(pwd.getpwnam("landscape").pw_uid)
57
 
                os.system(find_reporter_command())
 
57
                command = find_reporter_command()
 
58
                if self._config.config is not None:
 
59
                    command += " -c %s" % self._config.config
 
60
                os.system(command)
58
61
 
59
62
        result = self.use_hash_id_db()
60
63
        result.addCallback(lambda x: self.handle_tasks())
163
166
                     "exchange urgently.")
164
167
        return self._broker.send_message(message, True)
165
168
 
 
169
    @staticmethod
 
170
    def find_command():
 
171
        return find_changer_command()
 
172
 
 
173
 
 
174
def find_changer_command():
 
175
    dirname = os.path.dirname(os.path.abspath(sys.argv[0]))
 
176
    return os.path.join(dirname, "landscape-package-changer")
 
177
 
166
178
 
167
179
def main(args):
168
180
    if os.getpgrp() != os.getpid():
169
181
        os.setsid()
170
182
    return run_task_handler(PackageChanger, args)
171
 
 
172
 
 
173
 
def find_changer_command():
174
 
    dirname = os.path.dirname(os.path.abspath(sys.argv[0]))
175
 
    return os.path.join(dirname, "landscape-package-changer")