Merge lp://staging/~nskaggs/juju-release-tools/add-epoch into lp://staging/juju-release-tools

Proposed by Nicholas Skaggs
Status: Merged
Merged at revision: 339
Proposed branch: lp://staging/~nskaggs/juju-release-tools/add-epoch
Merge into: lp://staging/juju-release-tools
Diff against target: 238 lines (+39/-20)
2 files modified
build_package.py (+16/-11)
tests/test_build_package.py (+23/-9)
To merge this branch: bzr merge lp://staging/~nskaggs/juju-release-tools/add-epoch
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+305383@code.staging.launchpad.net

Description of the change

Fix for bug 1619396. Add epoch to version strings.

To post a comment you must log in.
338. By Nicholas Skaggs

make epoch default to 1

Revision history for this message
Curtis Hovey (sinzui) wrote :

Thank you.

review: Approve (code)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

+ dch --newversion 1:2.0-beta18~0ubuntu1~12.04.1~juju1 -D precise --force-distribution New upstream devel release. (LP #1)
+ debcommit
bzr commit -m 'New upstream devel release. (LP #1)'
Committing to: /mnt/jenkins/workspace/balloons-release-juju-create-source-packages/juju-build-precise-all/source/
modified debian/changelog
Committed revision 140.
+ bzr bd -S -- -us -uc
Building using working tree
Building package in normal mode
Looking for a way to retrieve the upstream tarball
Using apt to look for the upstream tarball.
apt could not find the needed tarball.
Trying to use get-packaged-orig-source to retrieve needed tarball.
dh get-packaged-orig-source
dh: Unknown sequence get-packaged-orig-source (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:23: recipe for target 'get-packaged-orig-source' failed
make: *** [get-packaged-orig-source] Error 2
Trying to run get-packaged-orig-source rule failed
Trying to use get-orig-source to retrieve needed tarball (deprecated).
dh get-orig-source
dh: Unknown sequence get-orig-source (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:23: recipe for target 'get-orig-source' failed
make: *** [get-orig-source] Error 2
Trying to run get-orig-source rule failed
Using uscan to look for the upstream tarball.
uscan warn: In /tmp/tmpVtgMO5 no matching hrefs for version 2.0 in watch line
  https://launchpad.net/juju-core/+download https://launchpad.net/juju-core/.*/.*/.*/juju-core_(.*)\.tar\.gz
uscan could not find the needed tarball.
bzr: ERROR: Unable to find the needed upstream tarball for package juju-core, version 2.0.
Creating /mnt/jenkins/workspace/balloons-release-juju-create-source-packages/juju-build-any-all
Copying juju-core_2.0-beta18.tar.gz to /mnt/jenkins/workspace/balloons-release-juju-create-source-packages/juju-build-any-all
Creating /mnt/jenkins/workspace/balloons-release-juju-create-source-packages/juju-build-precise-all
Traceback (most recent call last):
  File "/var/lib/jenkins/juju-release-tools/build_package_test.py", line 584, in <module>
    sys.exit(main(sys.argv))
  File "/var/lib/jenkins/juju-release-tools/build_package_test.py", line 513, in main
    revid=args.revid, epoch=args.epoch)
  File "/var/lib/jenkins/juju-release-tools/build_package_test.py", line 489, in build_source
    date=date, build=build, revid=revid, epoch=epoch)
  File "/var/lib/jenkins/juju-release-tools/build_package_test.py", line 432, in create_source_package
    subprocess.check_call([script], shell=True, cwd=source_dir, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)

Revision history for this message
Curtis Hovey (sinzui) wrote :

Why are you looking at the juju 1.x project (juju-core). Juju 2.x is published in the juju project.
    https://launchpad.net/juju/2.0/2.0-beta18

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I ran a new one with http://juju-ci.vapour.ws:8080/view/Experiments/job/balloons-release-juju-create-source-packages/6/console. I believe this issue is encountered because we haven't released anything new since the juju-core -> juju switch into the archive.

Since we call the package juju-core, bzr-bd looks at the juju-core project for an upstream tarball.

Curiously the actual run does this fine:

bzr bd -S -- -us -uc
Building using working tree
Building package in normal mode
Looking for a way to retrieve the upstream tarball
Using pristine-tar to reconstruct juju-core_2.0-rc1.orig.tar.gz.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches