Merge lp:~jelmer/bzr-builddeb/rmproperties into lp:bzr-builddeb

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: 653
Merged at revision: 654
Proposed branch: lp:~jelmer/bzr-builddeb/rmproperties
Merge into: lp:bzr-builddeb
Diff against target: 68 lines (+0/-64)
1 file modified
properties.py (+0/-64)
To merge this branch: bzr merge lp:~jelmer/bzr-builddeb/rmproperties
Reviewer Review Type Date Requested Status
Bzr-builddeb-hackers Pending
Review via email: mp+84195@code.launchpad.net

Description of the change

Remove the 'properties' module, which is unused.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'properties.py'
2--- properties.py 2011-09-29 10:11:07 +0000
3+++ properties.py 1970-01-01 00:00:00 +0000
4@@ -1,64 +0,0 @@
5-# properties.py -- Properties of a build
6-# Copyright (C) 2006 James Westby <jw+debian@jameswestby.net>
7-#
8-# This file is part of bzr-builddeb.
9-#
10-# bzr-builddeb is free software; you can redistribute it and/or modify
11-# it under the terms of the GNU General Public License as published by
12-# the Free Software Foundation; either version 2 of the License, or
13-# (at your option) any later version.
14-#
15-# bzr-builddeb is distributed in the hope that it will be useful,
16-# but WITHOUT ANY WARRANTY; without even the implied warranty of
17-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18-# GNU General Public License for more details.
19-#
20-# You should have received a copy of the GNU General Public License
21-# along with bzr-builddeb; if not, write to the Free Software
22-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23-#
24-import os
25-
26-class BuildProperties(object):
27- """Properties of this specific build"""
28-
29- def __init__(self, changelog, build_dir, tarball_dir, top_level):
30- self._changelog = changelog
31- self._build_dir = build_dir
32- self._tarball_dir = tarball_dir
33- self._top_level = top_level
34-
35- def package(self):
36- return self._changelog.package
37-
38- def upstream_version(self):
39- return self._changelog.upstream_version
40-
41- def debian_version(self):
42- return self._changelog.debian_version
43-
44- def full_version(self):
45- return self._changelog.full_version
46-
47- def full_version_no_epoch(self):
48- if self._changelog.debian_version is None:
49- return self.upstream_version()
50- return self.upstream_version() + "-" + self.debian_version()
51-
52- def build_dir(self):
53- return self._build_dir
54-
55- def source_dir(self, relative=True):
56- if relative:
57- return os.path.join(self.build_dir(),
58- self.package()+"-"+self.upstream_version())
59- else:
60- return self.package()+"-"+self.upstream_version()
61-
62- def tarball_dir(self):
63- return self._tarball_dir
64-
65- def top_level(self):
66- return self._top_level
67-
68-# vim: ts=2 sts=2 sw=2

Subscribers

People subscribed via source and target branches