Merge lp:~lifeless/bzr-builddeb/trunk into lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old

Proposed by Robert Collins
Status: Merged
Approved by: James Westby
Approved revision: not available
Merge reported by: James Westby
Merged at revision: not available
Proposed branch: lp:~lifeless/bzr-builddeb/trunk
Merge into: lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old
Diff against target: 473 lines (+64/-53)
7 files modified
builder.py (+5/-5)
changes.py (+1/-1)
cmds.py (+19/-19)
directory.py (+5/-5)
hooks.py (+2/-2)
import_dsc.py (+16/-5)
upstream.py (+16/-16)
To merge this branch: bzr merge lp:~lifeless/bzr-builddeb/trunk
Reviewer Review Type Date Requested Status
James Westby Approve
Review via email: mp+15301@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

Various bits.

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

On Fri Nov 27 01:15:22 UTC 2009 Robert Collins wrote:
> Robert Collins has proposed merging lp:~lifeless/bzr-builddeb/trunk into
> lp:bzr-builddeb.
>
> Requested reviews:
> Bzr-builddeb-hackers (bzr-builddeb-hackers)
> Related bugs:
> #486534 merge-upstream doesn't work in shared treeless repo
> https://bugs.launchpad.net/bugs/486534
>
>
> Various bits.

The stuff unique to this proposal looks fine to me.

Thanks,

James

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

Merged, with the tweak to use subprocess not os.system.

Thanks,

James

review: Approve
lp:~lifeless/bzr-builddeb/trunk updated
385. By James Westby

Use bzrlib.trace.note instead of the deprecated b.t.info. Thanks Jelmer.

386. By James Westby

Clean up some unused imports.

387. By James Westby

Handle no-trees repo in merge-upstream, and subprocess_setup in more places.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'builder.py'
--- builder.py 2009-07-15 20:48:37 +0000
+++ builder.py 2009-11-27 01:15:21 +0000
@@ -23,7 +23,7 @@
23import subprocess23import subprocess
24import os24import os
2525
26from bzrlib.trace import info26from bzrlib.trace import note
2727
28from bzrlib.plugins.builddeb.errors import (28from bzrlib.plugins.builddeb.errors import (
29 NoSourceDirError,29 NoSourceDirError,
@@ -69,10 +69,10 @@
69 os.makedirs(parent_dir)69 os.makedirs(parent_dir)
70 if os.path.exists(self.target_dir):70 if os.path.exists(self.target_dir):
71 if not self.use_existing:71 if not self.use_existing:
72 info("Purging the build dir: %s", self.target_dir)72 note("Purging the build dir: %s", self.target_dir)
73 shutil.rmtree(self.target_dir)73 shutil.rmtree(self.target_dir)
74 else:74 else:
75 info("Not purging build dir as requested: %s",75 note("Not purging build dir as requested: %s",
76 self.target_dir)76 self.target_dir)
77 else:77 else:
78 if self.use_existing:78 if self.use_existing:
@@ -83,7 +83,7 @@
8383
84 def build(self):84 def build(self):
85 """This builds the package using the supplied command."""85 """This builds the package using the supplied command."""
86 info("Building the package in %s, using %s", self.target_dir,86 note("Building the package in %s, using %s", self.target_dir,
87 self.builder)87 self.builder)
88 proc = subprocess.Popen(self.builder, shell=True, cwd=self.target_dir,88 proc = subprocess.Popen(self.builder, shell=True, cwd=self.target_dir,
89 preexec_fn=subprocess_setup)89 preexec_fn=subprocess_setup)
@@ -93,5 +93,5 @@
9393
94 def clean(self):94 def clean(self):
95 """This removes the build directory."""95 """This removes the build directory."""
96 info("Cleaning build dir: %s", self.target_dir)96 note("Cleaning build dir: %s", self.target_dir)
97 shutil.rmtree(self.target_dir)97 shutil.rmtree(self.target_dir)
9898
=== modified file 'changes.py'
--- changes.py 2009-03-16 15:52:52 +0000
+++ changes.py 2009-11-27 01:15:21 +0000
@@ -18,13 +18,13 @@
18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19#19#
2020
21import commands
22import os21import os
2322
24from debian_bundle import deb82223from debian_bundle import deb822
2524
26from bzrlib.trace import mutter25from bzrlib.trace import mutter
2726
27from bzrlib.plugins.builddeb import commands
28from bzrlib.plugins.builddeb.errors import DebianError, MissingChanges28from bzrlib.plugins.builddeb.errors import DebianError, MissingChanges
2929
30class DebianChanges(deb822.Changes):30class DebianChanges(deb822.Changes):
3131
=== modified file 'cmds.py'
--- cmds.py 2009-11-23 22:02:25 +0000
+++ cmds.py 2009-11-27 01:15:21 +0000
@@ -44,7 +44,7 @@
44from bzrlib.export import export44from bzrlib.export import export
45from bzrlib.option import Option45from bzrlib.option import Option
46from bzrlib.revisionspec import RevisionSpec46from bzrlib.revisionspec import RevisionSpec
47from bzrlib.trace import info, warning47from bzrlib.trace import note, warning
48from bzrlib.workingtree import WorkingTree48from bzrlib.workingtree import WorkingTree
4949
50from bzrlib.plugins.builddeb import (50from bzrlib.plugins.builddeb import (
@@ -223,7 +223,7 @@
223223
224 def _get_build_tree(self, revision, tree, branch):224 def _get_build_tree(self, revision, tree, branch):
225 if revision is None and tree is not None:225 if revision is None and tree is not None:
226 info("Building using working tree")226 note("Building using working tree")
227 working_tree = True227 working_tree = True
228 else:228 else:
229 if revision is None:229 if revision is None:
@@ -233,7 +233,7 @@
233 else:233 else:
234 raise BzrCommandError('bzr builddeb --revision takes exactly one '234 raise BzrCommandError('bzr builddeb --revision takes exactly one '
235 'revision specifier.')235 'revision specifier.')
236 info("Building branch from revision %s", revid)236 note("Building branch from revision %s", revid)
237 tree = branch.repository.revision_tree(revid)237 tree = branch.repository.revision_tree(revid)
238 working_tree = False238 working_tree = False
239 return tree, working_tree239 return tree, working_tree
@@ -242,20 +242,20 @@
242 if not merge:242 if not merge:
243 merge = config.merge243 merge = config.merge
244 if merge:244 if merge:
245 info("Running in merge mode")245 note("Running in merge mode")
246 native = False246 native = False
247 split = False247 split = False
248 else:248 else:
249 if not native:249 if not native:
250 native = config.native250 native = config.native
251 if native:251 if native:
252 info("Running in native mode")252 note("Running in native mode")
253 split = False253 split = False
254 else:254 else:
255 if not split:255 if not split:
256 split = config.split256 split = config.split
257 if split:257 if split:
258 info("Running in split mode")258 note("Running in split mode")
259 return merge, native, split259 return merge, native, split
260260
261 def _get_build_command(self, config, builder, quick, build_options):261 def _get_build_command(self, config, builder, quick, build_options):
@@ -367,7 +367,7 @@
367 try:367 try:
368 config = debuild_config(tree, working_tree, no_user_config)368 config = debuild_config(tree, working_tree, no_user_config)
369 if reuse:369 if reuse:
370 info("Reusing existing build dir")370 note("Reusing existing build dir")
371 dont_purge = True371 dont_purge = True
372 use_existing = True372 use_existing = True
373 merge, native, split = self._build_type(config, merge, native, split)373 merge, native, split = self._build_type(config, merge, native, split)
@@ -535,11 +535,11 @@
535 if distribution is None:535 if distribution is None:
536 distribution = find_last_distribution(changelog)536 distribution = find_last_distribution(changelog)
537 if distribution is not None:537 if distribution is not None:
538 info("Using distribution %s" % distribution)538 note("Using distribution %s" % distribution)
539 except MissingChangelogError:539 except MissingChangelogError:
540 current_version = None540 current_version = None
541 if distribution is None:541 if distribution is None:
542 info("No distribution specified, and no changelog, "542 note("No distribution specified, and no changelog, "
543 "assuming 'debian'")543 "assuming 'debian'")
544 distribution = "debian"544 distribution = "debian"
545545
@@ -583,7 +583,7 @@
583 version = upstream_branch_version(upstream_branch,583 version = upstream_branch_version(upstream_branch,
584 upstream_revision, package,584 upstream_revision, package,
585 current_version.upstream_version)585 current_version.upstream_version)
586 info("Using version string %s for upstream branch." % (version))586 note("Using version string %s for upstream branch." % (version))
587 else:587 else:
588 raise BzrCommandError("You must specify the "588 raise BzrCommandError("You must specify the "
589 "version number using --version.")589 "version number using --version.")
@@ -622,11 +622,11 @@
622 package)622 package)
623 finally:623 finally:
624 tree.unlock()624 tree.unlock()
625 info("The new upstream version has been imported.")625 note("The new upstream version has been imported.")
626 if conflicts:626 if conflicts:
627 info("You should now resolve the conflicts, review the changes, and then commit.")627 note("You should now resolve the conflicts, review the changes, and then commit.")
628 else:628 else:
629 info("You should now review the changes and then commit.")629 note("You should now review the changes and then commit.")
630630
631631
632class cmd_import_dsc(Command):632class cmd_import_dsc(Command):
@@ -810,16 +810,16 @@
810 builder.prepare()810 builder.prepare()
811 run_hook(t, 'pre-export', config)811 run_hook(t, 'pre-export', config)
812 builder.export()812 builder.export()
813 info('Running "%s" in the exported directory.' % (command))813 note('Running "%s" in the exported directory.' % (command))
814 if give_instruction:814 if give_instruction:
815 info('If you want to cancel your changes then exit with a non-zero '815 note('If you want to cancel your changes then exit with a non-zero '
816 'exit code, e.g. run "exit 1".')816 'exit code, e.g. run "exit 1".')
817 try:817 try:
818 builder.build()818 builder.build()
819 except BuildFailedError:819 except BuildFailedError:
820 raise BzrCommandError('Not updating the working tree as the '820 raise BzrCommandError('Not updating the working tree as the '
821 'command failed.')821 'command failed.')
822 info("Copying debian/ back")822 note("Copying debian/ back")
823 if larstiq:823 if larstiq:
824 destination = ''824 destination = ''
825 else:825 else:
@@ -834,7 +834,7 @@
834 if proc.returncode != 0:834 if proc.returncode != 0:
835 raise BzrCommandError('Copying back debian/ failed')835 raise BzrCommandError('Copying back debian/ failed')
836 builder.clean()836 builder.clean()
837 info('If any files were added or removed you should run "bzr add" or '837 note('If any files were added or removed you should run "bzr add" or '
838 '"bzr rm" as appropriate.')838 '"bzr rm" as appropriate.')
839839
840840
@@ -914,10 +914,10 @@
914 # Merge source packaging branch in to the target packaging branch.914 # Merge source packaging branch in to the target packaging branch.
915 conflicts = tree.merge_from_branch(source_branch)915 conflicts = tree.merge_from_branch(source_branch)
916 if conflicts > 0:916 if conflicts > 0:
917 info('The merge resulted in %s conflicts. Please resolve these '917 note('The merge resulted in %s conflicts. Please resolve these '
918 'and commit the changes with "bzr commit".' % conflicts)918 'and commit the changes with "bzr commit".' % conflicts)
919 else:919 else:
920 info('The merge resulted in no conflicts. You may commit the '920 note('The merge resulted in no conflicts. You may commit the '
921 'changes by running "bzr commit".')921 'changes by running "bzr commit".')
922922
923923
924924
=== modified file 'directory.py'
--- directory.py 2009-04-16 10:42:12 +0000
+++ directory.py 2009-11-27 01:15:21 +0000
@@ -19,7 +19,7 @@
19#19#
2020
21from bzrlib import errors21from bzrlib import errors
22from bzrlib.trace import info22from bzrlib.trace import note
2323
24import apt_pkg24import apt_pkg
2525
@@ -61,7 +61,7 @@
61 raise errors.InvalidURL(path=url,61 raise errors.InvalidURL(path=url,
62 extra='version %s not found' % version)62 extra='version %s not found' % version)
63 63
64 info("Retrieving Vcs locating from %s Debian version %s", name, version)64 note("Retrieving Vcs locating from %s Debian version %s", name, version)
6565
66 if "Bzr" in urls[version]:66 if "Bzr" in urls[version]:
67 return urls[version]["Bzr"]67 return urls[version]["Bzr"]
@@ -70,7 +70,7 @@
70 try:70 try:
71 import bzrlib.plugins.svn71 import bzrlib.plugins.svn
72 except ImportError:72 except ImportError:
73 info("This package uses subversion. If you would like to "73 note("This package uses subversion. If you would like to "
74 "access it with bzr then please install bzr-svn "74 "access it with bzr then please install bzr-svn "
75 "and re-run the command.")75 "and re-run the command.")
76 else:76 else:
@@ -80,7 +80,7 @@
80 try:80 try:
81 import bzrlib.plugins.git81 import bzrlib.plugins.git
82 except ImportError:82 except ImportError:
83 info("This package uses git. If you would like to "83 note("This package uses git. If you would like to "
84 "access it with bzr then please install bzr-git "84 "access it with bzr then please install bzr-git "
85 "and re-run the command.")85 "and re-run the command.")
86 else:86 else:
@@ -90,7 +90,7 @@
90 try:90 try:
91 import bzrlib.plugins.hg91 import bzrlib.plugins.hg
92 except ImportError:92 except ImportError:
93 info("This package uses hg. If you would like to "93 note("This package uses hg. If you would like to "
94 "access it with bzr then please install bzr-hg"94 "access it with bzr then please install bzr-hg"
95 "and re-run the command.")95 "and re-run the command.")
96 else:96 else:
9797
=== modified file 'hooks.py'
--- hooks.py 2008-05-18 00:04:21 +0000
+++ hooks.py 2009-11-27 01:15:21 +0000
@@ -20,7 +20,7 @@
2020
21import subprocess21import subprocess
2222
23from bzrlib.trace import info23from bzrlib.trace import note
2424
25from bzrlib.plugins.builddeb.errors import HookFailedError25from bzrlib.plugins.builddeb.errors import HookFailedError
2626
@@ -29,7 +29,7 @@
29 hook = config.get_hook(hook_name)29 hook = config.get_hook(hook_name)
30 if hook is None:30 if hook is None:
31 return31 return
32 info("Running %s as %s hook" % (hook, hook_name))32 note("Running %s as %s hook" % (hook, hook_name))
33 proc = subprocess.Popen(hook, shell=True, 33 proc = subprocess.Popen(hook, shell=True,
34 cwd=tree.abspath(wd))34 cwd=tree.abspath(wd))
35 proc.wait()35 proc.wait()
3636
=== modified file 'import_dsc.py'
--- import_dsc.py 2009-09-16 14:52:14 +0000
+++ import_dsc.py 2009-11-27 01:15:21 +0000
@@ -35,6 +35,7 @@
35 import md535 import md5
36import os36import os
37import shutil37import shutil
38import signal
38import stat39import stat
39from subprocess import Popen, PIPE40from subprocess import Popen, PIPE
40from StringIO import StringIO41from StringIO import StringIO
@@ -54,12 +55,13 @@
54 AlreadyBranchError,55 AlreadyBranchError,
55 BzrCommandError,56 BzrCommandError,
56 NotBranchError,57 NotBranchError,
58 NoWorkingTree,
57 )59 )
58from bzrlib.export import export60from bzrlib.export import export
59from bzrlib.osutils import file_iterator, isdir, basename, splitpath61from bzrlib.osutils import file_iterator, isdir, basename, splitpath
60from bzrlib.revisionspec import RevisionSpec62from bzrlib.revisionspec import RevisionSpec
61from bzrlib.revision import NULL_REVISION63from bzrlib.revision import NULL_REVISION
62from bzrlib.trace import warning, info, mutter64from bzrlib.trace import warning, note, mutter
63from bzrlib.transform import TreeTransform, cook_conflicts, resolve_conflicts65from bzrlib.transform import TreeTransform, cook_conflicts, resolve_conflicts
64from bzrlib.transport import (66from bzrlib.transport import (
65 get_transport,67 get_transport,
@@ -1551,7 +1553,11 @@
1551 dir_to = self.branch.bzrdir.sprout(to_location,1553 dir_to = self.branch.bzrdir.sprout(to_location,
1552 revision_id=upstream_tip,1554 revision_id=upstream_tip,
1553 accelerator_tree=self.tree)1555 accelerator_tree=self.tree)
1554 self.upstream_tree = dir_to.open_workingtree()1556 try:
1557 self.upstream_tree = dir_to.open_workingtree()
1558 except NoWorkingTree:
1559 # Handle shared treeless repo's.
1560 self.upstream_tree = dir_to.create_workingtree()
1555 self.upstream_branch = self.upstream_tree.branch1561 self.upstream_branch = self.upstream_tree.branch
15561562
1557 _extract_upstream_tree = extract_upstream_tree1563 _extract_upstream_tree = extract_upstream_tree
@@ -1583,8 +1589,13 @@
1583 def _extract_tarball_to_tempdir(self, tarball_filename):1589 def _extract_tarball_to_tempdir(self, tarball_filename):
1584 tempdir = tempfile.mkdtemp()1590 tempdir = tempfile.mkdtemp()
1585 try:1591 try:
1586 assert os.system("tar xzf %s -C %s --strip-components 1"1592 old_sig = signal.getsignal(signal.SIGPIPE)
1587 % (tarball_filename, tempdir)) == 01593 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
1594 try:
1595 assert os.system("tar xzf %s -C %s --strip-components 1"
1596 % (tarball_filename, tempdir)) == 0
1597 finally:
1598 signal.signal(signal.SIGPIPE, old_sig)
1588 return tempdir1599 return tempdir
1589 except:1600 except:
1590 shutil.rmtree(tempdir)1601 shutil.rmtree(tempdir)
@@ -1728,7 +1739,7 @@
1728 finally:1739 finally:
1729 tree.unlock()1740 tree.unlock()
1730 command = ["/usr/bin/pristine-tar", "gendelta", tarball_path, "-"]1741 command = ["/usr/bin/pristine-tar", "gendelta", tarball_path, "-"]
1731 info(" ".join(command))1742 note(" ".join(command))
1732 proc = Popen(command, stdout=PIPE, cwd=dest)1743 proc = Popen(command, stdout=PIPE, cwd=dest)
1733 (stdout, stderr) = proc.communicate()1744 (stdout, stderr) = proc.communicate()
1734 if proc.returncode != 0:1745 if proc.returncode != 0:
17351746
=== modified file 'upstream.py'
--- upstream.py 2009-09-14 15:38:18 +0000
+++ upstream.py 2009-11-27 01:15:21 +0000
@@ -28,7 +28,7 @@
2828
29from bzrlib.export import export29from bzrlib.export import export
30from bzrlib.revisionspec import RevisionSpec30from bzrlib.revisionspec import RevisionSpec
31from bzrlib.trace import info31from bzrlib.trace import note
3232
33from bzrlib.plugins.builddeb.errors import (33from bzrlib.plugins.builddeb.errors import (
34 MissingUpstreamTarball,34 MissingUpstreamTarball,
@@ -83,7 +83,7 @@
83 revid = db.revid_of_upstream_version_from_branch(version)83 revid = db.revid_of_upstream_version_from_branch(version)
84 if not db.has_pristine_tar_delta(revid):84 if not db.has_pristine_tar_delta(revid):
85 raise PackageVersionNotPresent(package, version, self)85 raise PackageVersionNotPresent(package, version, self)
86 info("Using pristine-tar to reconstruct the needed tarball.")86 note("Using pristine-tar to reconstruct the needed tarball.")
87 try:87 try:
88 db.reconstruct_pristine_tar(revid, package, version, target_filename)88 db.reconstruct_pristine_tar(revid, package, version, target_filename)
89 except PristineTarError:89 except PristineTarError:
@@ -109,14 +109,14 @@
109 raise PackageVersionNotPresent(package, upstream_version, self)109 raise PackageVersionNotPresent(package, upstream_version, self)
110110
111 sources.Restart()111 sources.Restart()
112 info("Using apt to look for the upstream tarball.")112 note("Using apt to look for the upstream tarball.")
113 while sources.Lookup(package):113 while sources.Lookup(package):
114 if upstream_version \114 if upstream_version \
115 == Version(sources.Version).upstream_version:115 == Version(sources.Version).upstream_version:
116 if self._run_apt_source(package, sources.Version, target_dir):116 if self._run_apt_source(package, sources.Version, target_dir):
117 return117 return
118 break118 break
119 info("apt could not find the needed tarball.")119 note("apt could not find the needed tarball.")
120 raise PackageVersionNotPresent(package, upstream_version, self)120 raise PackageVersionNotPresent(package, upstream_version, self)
121121
122 def _get_command(self, package, version_str):122 def _get_command(self, package, version_str):
@@ -157,7 +157,7 @@
157 self.upstream_branch.lock_read()157 self.upstream_branch.lock_read()
158 try:158 try:
159 revid = self._get_revision_id(version)159 revid = self._get_revision_id(version)
160 info("Exporting upstream branch revision %s to create the tarball",160 note("Exporting upstream branch revision %s to create the tarball",
161 revid)161 revid)
162 target_filename = self._tarball_path(package, version, target_dir)162 target_filename = self._tarball_path(package, version, target_dir)
163 tarball_base = "%s-%s" % (package, version)163 tarball_base = "%s-%s" % (package, version)
@@ -176,16 +176,16 @@
176176
177 def _get_orig_source(self, source_dir, desired_tarball_name,177 def _get_orig_source(self, source_dir, desired_tarball_name,
178 target_dir):178 target_dir):
179 info("Trying to use get-orig-source to retrieve needed tarball.")179 note("Trying to use get-orig-source to retrieve needed tarball.")
180 command = ["/usr/bin/make", "-f", "debian/rules", "get-orig-source"]180 command = ["/usr/bin/make", "-f", "debian/rules", "get-orig-source"]
181 proc = subprocess.Popen(command, cwd=source_dir)181 proc = subprocess.Popen(command, cwd=source_dir)
182 ret = proc.wait()182 ret = proc.wait()
183 if ret != 0:183 if ret != 0:
184 info("Trying to run get-orig-source rule failed")184 note("Trying to run get-orig-source rule failed")
185 return False185 return False
186 fetched_tarball = os.path.join(source_dir, desired_tarball_name)186 fetched_tarball = os.path.join(source_dir, desired_tarball_name)
187 if not os.path.exists(fetched_tarball):187 if not os.path.exists(fetched_tarball):
188 info("get-orig-source did not create %s", desired_tarball_name)188 note("get-orig-source did not create %s", desired_tarball_name)
189 return False189 return False
190 repack_tarball(fetched_tarball, desired_tarball_name, 190 repack_tarball(fetched_tarball, desired_tarball_name,
191 target_dir=target_dir)191 target_dir=target_dir)
@@ -213,7 +213,7 @@
213 return213 return
214 finally:214 finally:
215 shutil.rmtree(tmpdir)215 shutil.rmtree(tmpdir)
216 info("No debian/rules file to try and use for a get-orig-source rule")216 note("No debian/rules file to try and use for a get-orig-source rule")
217 raise PackageVersionNotPresent(package, version, self)217 raise PackageVersionNotPresent(package, version, self)
218218
219219
@@ -225,14 +225,14 @@
225 self.larstiq = larstiq225 self.larstiq = larstiq
226226
227 def _uscan(self, package, upstream_version, watch_file, target_dir):227 def _uscan(self, package, upstream_version, watch_file, target_dir):
228 info("Using uscan to look for the upstream tarball.")228 note("Using uscan to look for the upstream tarball.")
229 r = os.system("uscan --upstream-version %s --force-download --rename "229 r = os.system("uscan --upstream-version %s --force-download --rename "
230 "--package %s --watchfile %s --check-dirname-level 0 " 230 "--package %s --watchfile %s --check-dirname-level 0 "
231 "--download --repack --destdir %s --download-version %s" %231 "--download --repack --destdir %s --download-version %s" %
232 (upstream_version, package, watch_file, target_dir,232 (upstream_version, package, watch_file, target_dir,
233 upstream_version))233 upstream_version))
234 if r != 0:234 if r != 0:
235 info("uscan could not find the needed tarball.")235 note("uscan could not find the needed tarball.")
236 return False236 return False
237 return True237 return True
238238
@@ -243,7 +243,7 @@
243 watchfile = 'debian/watch'243 watchfile = 'debian/watch'
244 watch_id = self.tree.path2id(watchfile)244 watch_id = self.tree.path2id(watchfile)
245 if watch_id is None:245 if watch_id is None:
246 info("No watch file to use to retrieve upstream tarball.")246 note("No watch file to use to retrieve upstream tarball.")
247 return None247 return None
248 (tmp, tempfilename) = tempfile.mkstemp()248 (tmp, tempfilename) = tempfile.mkstemp()
249 try:249 try:
@@ -287,7 +287,7 @@
287 shutil.rmtree(tmpdir)287 shutil.rmtree(tmpdir)
288288
289 def get_specific_version(self, package, version, target_dir):289 def get_specific_version(self, package, version, target_dir):
290 info("Using the current branch without the 'debian' directory "290 note("Using the current branch without the 'debian' directory "
291 "to create the tarball")291 "to create the tarball")
292 self._split(package, version, 292 self._split(package, version,
293 self._tarball_path(package, version, target_dir))293 self._tarball_path(package, version, target_dir))
@@ -387,9 +387,9 @@
387 :param target_dir: The directory to place the tarball in.387 :param target_dir: The directory to place the tarball in.
388 :return: The path to the tarball.388 :return: The path to the tarball.
389 """389 """
390 info("Looking for a way to retrieve the upstream tarball")390 note("Looking for a way to retrieve the upstream tarball")
391 if self.already_exists_in_target(target_dir):391 if self.already_exists_in_target(target_dir):
392 info("Upstream tarball already exists in build directory, "392 note("Upstream tarball already exists in build directory, "
393 "using that")393 "using that")
394 return os.path.join(target_dir, self._tarball_name())394 return os.path.join(target_dir, self._tarball_name())
395 if not self.already_exists_in_store():395 if not self.already_exists_in_store():
@@ -401,7 +401,7 @@
401 except PackageVersionNotPresent:401 except PackageVersionNotPresent:
402 raise MissingUpstreamTarball(self._tarball_name())402 raise MissingUpstreamTarball(self._tarball_name())
403 else:403 else:
404 info("Using the upstream tarball that is present in "404 note("Using the upstream tarball that is present in "
405 "%s" % self.store_dir)405 "%s" % self.store_dir)
406 assert self.provide_from_store_dir(target_dir)406 assert self.provide_from_store_dir(target_dir)
407 return os.path.join(target_dir, self._tarball_name())407 return os.path.join(target_dir, self._tarball_name())

Subscribers

People subscribed via source and target branches