~mvo/software-center/lp957599

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Michael Vogt
  • Date: 2012-03-15 18:20:17 UTC
  • mfrom: (2863.1.1 pep8-test-part1)
  • Revision ID: michael.vogt@ubuntu.com-20120315182017-o14wchqvn8vr40m8
mergedĀ lp:~mvo/software-center/pep8-test-1/

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                        gtkbuilder, flags=re.DOTALL)
52
52
    open(fname, "w").write(gtkbuilder)
53
53
 
 
54
 
54
55
def merge_extras_ubuntu_com_channel_file():
55
56
    # update ubuntu-extras.list.in (this will not be part of debian as
56
57
    # its killed of in debian/rules on a non-ubuntu build)
57
58
    DISTROSERIES = platform.dist()[2]
58
59
    channelfile = "data/channels/Ubuntu/ubuntu-extras.list"
59
 
    s=open(channelfile+".in").read()
 
60
    s = open(channelfile + ".in").read()
60
61
    open(channelfile, "w").write(s.replace("#DISTROSERIES#", DISTROSERIES))
61
 
    
 
62
 
62
63
 
63
64
# update version.py
64
65
line = open("debian/changelog").readline()
150
151
                   ['debian/source_software-center.py']),
151
152
                  # extra software channels (can be distro specific)
152
153
                  ('/usr/share/app-install/channels/',
153
 
                   glob.glob("data/channels/%s/*" % DISTRO) ),
 
154
                   glob.glob("data/channels/%s/*" % DISTRO)),
154
155
                  ],
155
156
      cmdclass={"build": build_extra.build_extra,
156
157
                "build_i18n": build_i18n.build_i18n,