~ubuntu-branches/ubuntu/saucy/screenlets/saucy

« back to all changes in this revision

Viewing changes to src/lib/utils.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2011-03-25 22:02:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110325220252-bneepbdlr2k23qxv
Tags: 0.1.3-0ubuntu1
* New upstream release, including only fixes and translations updates since
  last upload.
* debian/watch:
 - Update to watch for all types of archives.
* debian/control:
 - Add Recommends on screenlets-pack-basic.
 - Add Suggests on screenlets-pack-all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
def is_screenlets_ppa_enabled():
171
171
        """Detect if Screenlets default PPA is enabled on system."""
172
172
        import commands
173
 
        result = commands.getstatusoutput("ls /etc/apt/sources.list.d/screenlets-dev-ppa-*.list | xargs grep '^deb.*'")[0]
 
173
        result = commands.getstatusoutput("ls /etc/apt/sources.list.d/screenlets*ppa*.list | xargs grep '^deb.*'")[0]
174
174
        return result == 0
175
175
 
176
176
def get_translator(path):