~roadmr/ubuntu/precise/checkbox/0.13.5

« back to all changes in this revision

Viewing changes to install/config

  • Committer: Bazaar Package Importer
  • Author(s): Marc Tardif, Daniel Manrique, Jochen Kemnade, Jeff Lane, Michael Terry
  • Date: 2011-03-17 11:15:12 UTC
  • Revision ID: james.westby@ubuntu.com-20110317111512-4n52l4z7vxy57yhe
Tags: 0.11.2
New upstream release (LP: #736919):
* Added version to dpkg dependency
* Added multiarch support to install script (LP: #727411)
* Fixed submitting data twice (LP: #531010)
* Fixed job descriptions for checkbox-cli (LP: #221400)

[Daniel Manrique]
* Fixed strings in audio tests and updated pot file (LP: #691241)

[Jochen Kemnade]
* Fixed grammar in user-apps tests (LP: #642001)

[Jeff Lane]
* Added reboot instructions to suspend/hibernate tests (LP: #420493)
* Made the firewire instructions make more sense (LP: #693068)

[Michael Terry]
* Fixed several strings appear in English although translated (LP: #514401)
  - jobs/fingerprint.txt.in
  - jobs/media.txt.in
  - jobs/monitor.txt.in
  - jobs/sleep.txt.in
  - jobs/firewire.txt.in
  - po/checkbox.pot
* Fixed grammar (LP: #525454)
  + jobs/fingerprint.txt.in

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
import os
8
8
import re
9
9
import sys
 
10
import commands
10
11
import posixpath
11
12
 
12
13
from ConfigParser import ConfigParser
67
68
 
68
69
    configs_base = "/usr/share/%(base_name)s/configs/%(name)s.ini"
69
70
    examples_base = "/usr/share/%(base_name)s/examples/%(name)s.ini"
70
 
    templates_base = "/var/lib/dpkg/info/%(name)s.templates"
71
71
 
72
72
    def __init__(self, name, configs_path=None, examples_path=None,
73
73
                 templates_path=None):
77
77
            % {"name": name, "base_name": self.base_name}
78
78
        self._examples_path = examples_path or self.examples_base \
79
79
            % {"name": name, "base_name": self.base_name}
80
 
        self._templates_path = templates_path or self.templates_base \
81
 
            % {"name": name, "base_name": self.base_name}
 
80
        self._templates_path = commands.getoutput(
 
81
            "dpkg-query --control-path %(name)s templates"
 
82
            % {"name": name, "base_name": self.base_name})
82
83
 
83
84
        self._config = Config()
84
85
        if os.environ.get("DEBIAN_HAS_FRONTEND"):