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

Proposed by Robert Collins
Status: Rejected
Rejected by: James Westby
Proposed branch: lp:~lifeless/bzr-builddeb/2.0
Merge into: lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old
Diff against target: 442 lines (+52/-52)
7 files modified
builder.py (+5/-5)
changes.py (+1/-1)
cmds.py (+21/-21)
directory.py (+5/-5)
hooks.py (+2/-2)
import_dsc.py (+2/-2)
upstream.py (+16/-16)
To merge this branch: bzr merge lp:~lifeless/bzr-builddeb/2.0
Reviewer Review Type Date Requested Status
James Westby Disapprove
Review via email: mp+14734@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

Fix up tests for bzr 2.1

lp:~lifeless/bzr-builddeb/2.0 updated
381. By Robert Collins

Import commands more safely.

382. By Robert Collins

Merge bug fixes from Aaron. Note that these are untested and show untested parts of bzr-builddeb.

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

Hi,

Thanks for working on this, but merging this gives an empty diff
from my current tree for a few reasons, so I reject.

The info->note changes were fixed by https://code.edge.launchpad.net/~jelmer/bzr-builddeb/no-trace-info/+merge/12587

50 -import commands
51 import os
52
53 from debian_bundle import deb822
54
55 from bzrlib.trace import mutter
56
57 +from bzrlib.plugins.builddeb import commands
58 from bzrlib.plugins.builddeb.errors import DebianError, MissingChanges

There's no bzrlib.plugins.builddeb.commands, and the stdlib
commands module is what is being used, so I think this shouldn't
change.

167 - db.upstream_tag_name(last_version)))
168 + db.upstream_tag_name(str(last_version))))

That's not right, the API doesn't let us distinguish the two types of
version very well, but I had already fixed this properly (last_version.upstream_version)
in a recent revision.

170 - last_version)
171 + last_version.upstream_version)

That had also been fixed in a recent revision.

Thanks,

James

review: Disapprove

Unmerged revisions

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-22 03:20:24 +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-22 03:20:24 +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-09-16 12:47:18 +0000
+++ cmds.py 2009-11-22 03:20:24 +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 (
@@ -224,7 +224,7 @@
224224
225 def _get_build_tree(self, revision, tree, branch):225 def _get_build_tree(self, revision, tree, branch):
226 if revision is None and tree is not None:226 if revision is None and tree is not None:
227 info("Building using working tree")227 note("Building using working tree")
228 working_tree = True228 working_tree = True
229 else:229 else:
230 if revision is None:230 if revision is None:
@@ -234,7 +234,7 @@
234 else:234 else:
235 raise BzrCommandError('bzr builddeb --revision takes exactly one '235 raise BzrCommandError('bzr builddeb --revision takes exactly one '
236 'revision specifier.')236 'revision specifier.')
237 info("Building branch from revision %s", revid)237 note("Building branch from revision %s", revid)
238 tree = branch.repository.revision_tree(revid)238 tree = branch.repository.revision_tree(revid)
239 working_tree = False239 working_tree = False
240 return tree, working_tree240 return tree, working_tree
@@ -243,20 +243,20 @@
243 if not merge:243 if not merge:
244 merge = config.merge244 merge = config.merge
245 if merge:245 if merge:
246 info("Running in merge mode")246 note("Running in merge mode")
247 native = False247 native = False
248 split = False248 split = False
249 else:249 else:
250 if not native:250 if not native:
251 native = config.native251 native = config.native
252 if native:252 if native:
253 info("Running in native mode")253 note("Running in native mode")
254 split = False254 split = False
255 else:255 else:
256 if not split:256 if not split:
257 split = config.split257 split = config.split
258 if split:258 if split:
259 info("Running in split mode")259 note("Running in split mode")
260 return merge, native, split260 return merge, native, split
261261
262 def _get_build_command(self, config, builder, quick, build_options):262 def _get_build_command(self, config, builder, quick, build_options):
@@ -368,7 +368,7 @@
368 try:368 try:
369 config = debuild_config(tree, working_tree, no_user_config)369 config = debuild_config(tree, working_tree, no_user_config)
370 if reuse:370 if reuse:
371 info("Reusing existing build dir")371 note("Reusing existing build dir")
372 dont_purge = True372 dont_purge = True
373 use_existing = True373 use_existing = True
374 merge, native, split = self._build_type(config, merge, native, split)374 merge, native, split = self._build_type(config, merge, native, split)
@@ -533,11 +533,11 @@
533 if distribution is None:533 if distribution is None:
534 distribution = find_last_distribution(changelog)534 distribution = find_last_distribution(changelog)
535 if distribution is not None:535 if distribution is not None:
536 info("Using distribution %s" % distribution)536 note("Using distribution %s" % distribution)
537 except MissingChangelogError:537 except MissingChangelogError:
538 current_version = None538 current_version = None
539 if distribution is None:539 if distribution is None:
540 info("No distribution specified, and no changelog, "540 note("No distribution specified, and no changelog, "
541 "assuming 'debian'")541 "assuming 'debian'")
542 distribution = "debian"542 distribution = "debian"
543543
@@ -581,7 +581,7 @@
581 version = upstream_branch_version(upstream_branch,581 version = upstream_branch_version(upstream_branch,
582 upstream_revision, package,582 upstream_revision, package,
583 current_version.upstream_version)583 current_version.upstream_version)
584 info("Using version string %s for upstream branch." % (version))584 note("Using version string %s for upstream branch." % (version))
585 else:585 else:
586 raise BzrCommandError("You must specify the "586 raise BzrCommandError("You must specify the "
587 "version number using --version.")587 "version number using --version.")
@@ -620,11 +620,11 @@
620 package)620 package)
621 finally:621 finally:
622 tree.unlock()622 tree.unlock()
623 info("The new upstream version has been imported.")623 note("The new upstream version has been imported.")
624 if conflicts:624 if conflicts:
625 info("You should now resolve the conflicts, review the changes, and then commit.")625 note("You should now resolve the conflicts, review the changes, and then commit.")
626 else:626 else:
627 info("You should now review the changes and then commit.")627 note("You should now review the changes and then commit.")
628628
629629
630class cmd_import_dsc(Command):630class cmd_import_dsc(Command):
@@ -729,9 +729,9 @@
729 raise BzrCommandError("Unable to find the tag for "729 raise BzrCommandError("Unable to find the tag for "
730 "the previous upstream version, %s, in the "730 "the previous upstream version, %s, in the "
731 "branch: %s" % (last_version,731 "branch: %s" % (last_version,
732 db.upstream_tag_name(last_version)))732 db.upstream_tag_name(str(last_version))))
733 upstream_tip = db.revid_of_upstream_version_from_branch(733 upstream_tip = db.revid_of_upstream_version_from_branch(
734 last_version)734 last_version.upstream_version)
735 db.extract_upstream_tree(upstream_tip, tempdir)735 db.extract_upstream_tree(upstream_tip, tempdir)
736 else:736 else:
737 db._create_empty_upstream_tree(tempdir)737 db._create_empty_upstream_tree(tempdir)
@@ -808,16 +808,16 @@
808 builder.prepare()808 builder.prepare()
809 run_hook(t, 'pre-export', config)809 run_hook(t, 'pre-export', config)
810 builder.export()810 builder.export()
811 info('Running "%s" in the exported directory.' % (command))811 note('Running "%s" in the exported directory.' % (command))
812 if give_instruction:812 if give_instruction:
813 info('If you want to cancel your changes then exit with a non-zero '813 note('If you want to cancel your changes then exit with a non-zero '
814 'exit code, e.g. run "exit 1".')814 'exit code, e.g. run "exit 1".')
815 try:815 try:
816 builder.build()816 builder.build()
817 except BuildFailedError:817 except BuildFailedError:
818 raise BzrCommandError('Not updating the working tree as the '818 raise BzrCommandError('Not updating the working tree as the '
819 'command failed.')819 'command failed.')
820 info("Copying debian/ back")820 note("Copying debian/ back")
821 if larstiq:821 if larstiq:
822 destination = ''822 destination = ''
823 else:823 else:
@@ -832,7 +832,7 @@
832 if proc.returncode != 0:832 if proc.returncode != 0:
833 raise BzrCommandError('Copying back debian/ failed')833 raise BzrCommandError('Copying back debian/ failed')
834 builder.clean()834 builder.clean()
835 info('If any files were added or removed you should run "bzr add" or '835 note('If any files were added or removed you should run "bzr add" or '
836 '"bzr rm" as appropriate.')836 '"bzr rm" as appropriate.')
837837
838838
@@ -913,10 +913,10 @@
913 # Merge source packaging branch in to the target packaging branch.913 # Merge source packaging branch in to the target packaging branch.
914 conflicts = tree.merge_from_branch(source_branch)914 conflicts = tree.merge_from_branch(source_branch)
915 if conflicts > 0:915 if conflicts > 0:
916 info('The merge resulted in %s conflicts. Please resolve these '916 note('The merge resulted in %s conflicts. Please resolve these '
917 'and commit the changes with "bzr commit".' % conflicts)917 'and commit the changes with "bzr commit".' % conflicts)
918 else:918 else:
919 info('The merge resulted in no conflicts. You may commit the '919 note('The merge resulted in no conflicts. You may commit the '
920 'changes by running "bzr commit".')920 'changes by running "bzr commit".')
921921
922922
923923
=== modified file 'directory.py'
--- directory.py 2009-04-16 10:42:12 +0000
+++ directory.py 2009-11-22 03:20:24 +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-22 03:20:24 +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-22 03:20:24 +0000
@@ -59,7 +59,7 @@
59from bzrlib.osutils import file_iterator, isdir, basename, splitpath59from bzrlib.osutils import file_iterator, isdir, basename, splitpath
60from bzrlib.revisionspec import RevisionSpec60from bzrlib.revisionspec import RevisionSpec
61from bzrlib.revision import NULL_REVISION61from bzrlib.revision import NULL_REVISION
62from bzrlib.trace import warning, info, mutter62from bzrlib.trace import warning, note, mutter
63from bzrlib.transform import TreeTransform, cook_conflicts, resolve_conflicts63from bzrlib.transform import TreeTransform, cook_conflicts, resolve_conflicts
64from bzrlib.transport import (64from bzrlib.transport import (
65 get_transport,65 get_transport,
@@ -1728,7 +1728,7 @@
1728 finally:1728 finally:
1729 tree.unlock()1729 tree.unlock()
1730 command = ["/usr/bin/pristine-tar", "gendelta", tarball_path, "-"]1730 command = ["/usr/bin/pristine-tar", "gendelta", tarball_path, "-"]
1731 info(" ".join(command))1731 note(" ".join(command))
1732 proc = Popen(command, stdout=PIPE, cwd=dest)1732 proc = Popen(command, stdout=PIPE, cwd=dest)
1733 (stdout, stderr) = proc.communicate()1733 (stdout, stderr) = proc.communicate()
1734 if proc.returncode != 0:1734 if proc.returncode != 0:
17351735
=== modified file 'upstream.py'
--- upstream.py 2009-09-14 15:38:18 +0000
+++ upstream.py 2009-11-22 03:20:24 +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