Merge lp:~maxb/ubuntu/lucid/devscripts/509441 into lp:ubuntu/lucid/devscripts

Proposed by Max Bowsher
Status: Merged
Merged at revision: not available
Proposed branch: lp:~maxb/ubuntu/lucid/devscripts/509441
Merge into: lp:ubuntu/lucid/devscripts
Diff against target: 39 lines (+16/-3)
2 files modified
debian/changelog (+8/-0)
scripts/debchange.pl (+8/-3)
To merge this branch: bzr merge lp:~maxb/ubuntu/lucid/devscripts/509441
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+17640@code.launchpad.net
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=== modified file 'debian/changelog'
2--- debian/changelog 2010-01-06 09:11:35 +0000
3+++ debian/changelog 2010-01-19 02:19:12 +0000
4@@ -1,3 +1,11 @@
5+devscripts (2.10.61ubuntu2) lucid; urgency=low
6+
7+ * Restore changes to scripts/debchange.pl erroneously dropped in the
8+ 2.10.55ubuntu1 merge, thereby fixing the --distributor option.
9+ (LP: #509441)
10+
11+ -- Max Bowsher <maxb@f2s.com> Tue, 19 Jan 2010 02:16:10 +0000
12+
13 devscripts (2.10.61ubuntu1) lucid; urgency=low
14
15 [ ﺄﺤﻣﺩ ﺎﻠﻤﺤﻣﻭﺪﻳ (Ahmed El-Mahmoudy) ]
16
17=== modified file 'scripts/debchange.pl'
18--- scripts/debchange.pl 2010-01-06 09:11:35 +0000
19+++ scripts/debchange.pl 2010-01-19 02:19:12 +0000
20@@ -402,11 +402,16 @@
21
22 # See if we're Debian, Ubuntu or someone else, if we can
23 my $distributor;
24-if (system('command -v lsb_release >/dev/null 2>&1') >> 8 == 0) {
25- $distributor = `lsb_release -is 2>/dev/null`;
26- chomp $distributor;
27+if (defined $opt_distributor) {
28+ $distributor = $opt_distributor;
29+} elsif (system('command -v lsb_release >/dev/null 2>&1') >> 8 == 0) {
30+ $distributor = `lsb_release -is 2>/dev/null`;
31+ chomp $distributor;
32 }
33 $distributor ||= 'Debian';
34+if ($distributor eq 'Ubuntu' and ($opt_n or $opt_bn or $opt_qa or $opt_bpo)) {
35+ $distributor = 'Debian';
36+}
37
38 # Check the distro name given.
39 if (defined $opt_D) {

Subscribers

People subscribed via source and target branches

to all changes: