Merge lp:~mvo/pkgme/template-for-source-format into lp:pkgme

Proposed by Michael Vogt
Status: Rejected
Rejected by: Michael Vogt
Proposed branch: lp:~mvo/pkgme/template-for-source-format
Merge into: lp:pkgme
Diff against target: 55 lines (+16/-5)
3 files modified
pkgme/info_elements.py (+9/-0)
pkgme/package_files.py (+6/-5)
pkgme/templates/source/format (+1/-0)
To merge this branch: bzr merge lp:~mvo/pkgme/template-for-source-format
Reviewer Review Type Date Requested Status
James Westby Approve
Review via email: mp+115157@code.launchpad.net

Description of the change

This adds the ability for backends to customize the source format. In v3 there is a relatively big "tar_ignore_default_pattern" that will e.g. strip out .so and so on. In v1 this is not the case so pkgme-binary will default to v1.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Hi,

Should we just default to v1 for everything?

Thanks,

James

Revision history for this message
Michael Vogt (mvo) wrote :

On Mon, Jul 16, 2012 at 02:58:17PM -0000, James Westby wrote:
> Hi,
>
> Should we just default to v1 for everything?

We can do that as well, I don't mind either way too much. My gut
feeling is that for source apps "3.0 (native)" is nice, even nicer
would be to have "3.0 (quilt)" and generate a orig.tar.gz
automatically when pkgme is run. The default ignore pattern is only a
problem for binary stuff and otherwise actually quite useful as it
filters out CVS dirs and similar by default.

Cheers,
 Michael

Revision history for this message
James Westby (james-w) wrote :

On Mon, 16 Jul 2012 15:49:22 -0000, Michael Vogt <email address hidden> wrote:
> We can do that as well, I don't mind either way too much. My gut
> feeling is that for source apps "3.0 (native)" is nice, even nicer
> would be to have "3.0 (quilt)" and generate a orig.tar.gz
> automatically when pkgme is run. The default ignore pattern is only a
> problem for binary stuff and otherwise actually quite useful as it
> filters out CVS dirs and similar by default.

I think we should aim for one format for everything for now, and if 1.0
is the format needed for binary games let's use that.

The reason we set 3.0 (native) in debian/source/format was to avoid the
prompt when there was no tarball that debuild gives you.

If setting 1.0 explicitly doesn't avoid that prompt then we'll have to
use something else I think.

Thanks,

James

Revision history for this message
Michael Vogt (mvo) wrote :

I reject this branch based on this feedback and create a new one that adds "debian/soruce/format" "1.0" instead

Revision history for this message
James Westby (james-w) :
review: Approve

Unmerged revisions

118. By Michael Vogt

allow overwrite for the debian/source/format

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pkgme/info_elements.py'
2--- pkgme/info_elements.py 2012-07-05 13:42:09 +0000
3+++ pkgme/info_elements.py 2012-07-16 14:31:26 +0000
4@@ -345,3 +345,12 @@
5 a default copyright template that the user needs to fill in.
6 """
7
8+
9+class SourceFormatString(InfoElement):
10+
11+ name = 'source_format'
12+ default = '3.0 (native)'
13+ description = """The debian source format string.
14+
15+ This can e.g. "1.0", "3.0 (quilt)" or "3.0 (native)".
16+ """
17
18=== modified file 'pkgme/package_files.py'
19--- pkgme/package_files.py 2012-07-05 13:34:22 +0000
20+++ pkgme/package_files.py 2012-07-16 14:31:26 +0000
21@@ -25,6 +25,7 @@
22 Maintainer,
23 PackageName,
24 Section,
25+ SourceFormatString,
26 TagLine,
27 Version,
28 )
29@@ -239,14 +240,14 @@
30 default_package_file_group.add_file_cls(Control)
31
32
33-class SourceFormat(DebianPackageFile):
34+class SourceFormat(DebianPackageFile, TemplatePackageFile):
35
36- elements = []
37+ elements = [
38+ SourceFormatString,
39+ ]
40
41 filename = "source/format"
42-
43- def get_contents(self):
44- return "3.0 (native)\n"
45+ template = "source/format"
46
47
48 default_package_file_group.add_file_cls(SourceFormat)
49
50=== added directory 'pkgme/templates/source'
51=== added file 'pkgme/templates/source/format'
52--- pkgme/templates/source/format 1970-01-01 00:00:00 +0000
53+++ pkgme/templates/source/format 2012-07-16 14:31:26 +0000
54@@ -0,0 +1,1 @@
55+$source_format

Subscribers

People subscribed via source and target branches

to all changes: