/srv/irclogs.ubuntu.com/2015/09/15/#launchpad.txt

sethjDue to a versioning error on my part when I try to upload an updated package to my PPA launchpad rejects it because a source file in PPA already has that version number. I deleted the affected packages but I'm still receiving the error. Do I need to do something else, or just wait longer?03:30
wgrantsethj: You can't change the contents of a package without also changing the version.03:37
wgrantYou will need to increment the version number.03:37
sethjgrr, the new version is correct, the old one was wrong :(03:38
sethjwgrant, would it be possible to delete the PPA and then reopen it with the same name and then upload?03:40
wgrantsethj: You could, but version numbers are cheap...03:40
sethjAt this point that would (potentially) be easier than repackaging with an incrementing version number.. (unless I'm missing an easy way to rename the source file)03:40
wgrantmv03:40
sethjwgrant, the problem is it isn't my software, so that's not exactly my choice.03:40
wgrantWhat's the difficulty?03:40
wgrantIt's the version number in the packaging that's the problem.03:41
sethjwell I was thinking bzr would throw a fit if I just used mv.03:41
wgrantThe package management system doesn't care what the software calls itself.03:41
sethjI realize that.03:41
sethjMaybe I'm too picky.03:41
wgrantbzr doesn't track the tarball in any version control scheme that I know of.03:41
sethjah, cool then.03:41
wgrantmv foo_1.2.3.orig.tar.gz foo_1.2.3+really.orig.tar.gz03:41
wgrantdch -e, fix the version from 1.2.3-1 to 1.2.3+really-103:41
wgrantThat should be all you need.03:42
sethjThat didn't work.03:44
sethjYou see03:44
sethjEverything but the .orig.tar.gz files are package_2.1-0ubuntu1 (the PPA has 0ubuntu0), it's the orig.tar.gz file that is causing the error.03:45
wgrantRight, so rename everything 2.1+oops-0ubuntu1, or similar.03:45
ubot5https://oops.canonical.com/?oopsid=OOPS-0ubuntu103:45
wgrantYou need to change the orig tarball version, which is the bit before the -03:46
wgrantThe version number of the .dsc and .debian.tar.gz is defined by debian/changelog03:46
wgrantSo rename the tarball and fix debian/changelog, and all should be good.03:46
sethjyeah but none of that changed the orig.tar.gz03:46
sethjI tried editing the filename directly, but then dput thew a fit.03:47
sethjmaybe rename it and then rebuild the package?03:47
wgrantHmmm?03:47
wgrantYou need to rename the orig.tar.gz yourself.03:47
wgrantThen change debian/changelog03:47
wgrantThen build and upload the package.03:47
sethjokay, so that's what I missed.03:47
sethjI didn't rebuild.03:48
wgrantdput just reads the .changes and uploads the files mentioned in it.03:48
wgrantIt doesn't know what a changelog is :)03:48
wgrantSo it can't notice changes to the changelog.03:48
sethjah03:49
sethjmy bad.03:49
sethjLooks like it is working now. Thank you wgrant!03:49
wgrantGreat03:49
wgrantLet me know if you run into any more trouble.03:49
Odd_Blokecjwatson: wgrant: Could you mark https://launchpad.net/~daniel-thewatkins/+livefs/ubuntu/wily/cpc as non-virtualised, please?09:20
wgrantOdd_Bloke: It is done.09:40
Odd_Blokewgrant: Danke.09:42
Odd_Blokewgrant: Should I still be seeing my armhf builds (for example) building on lgw01-*?10:18
Odd_Bloke(https://launchpad.net/~daniel-thewatkins/+livefs/ubuntu/wily/cpc/+build/37836, for example.)10:20
Odd_BlokeI'm seeing failures with a missing /usr/bin/env which I vaguely recall being related to being on a virtualised builder (though my memory may be lying to me).10:21
wgrantOdd_Bloke: No, that's still building virtualised.10:23
wgrantOh, the PPA needs to be devirt too, I guess.10:23
wgrantI can do that if you want.10:23
Odd_Blokewgrant: Oh, yes please.10:23
Odd_BlokeI forgot that both were considered.10:23
wgrantOdd_Bloke: Done.10:25
Odd_BlokeThanks again.10:25
Odd_BlokeAha, there we go.10:25
Odd_Blokewgrant: I'm not seeing packages I upload to that PPA build for (e.g.) armhf; am I forgetting something else I need to do to get those building?11:21
wgrantOdd_Bloke: Oh, I'd forgotten livecd-rootfs was arch: any. I'll enable armhf, but do you want all arches?11:29
Odd_Blokewgrant: Yes please.11:29
Odd_Blokewgrant: I had a look using lp-shell and couldn't see any, but is there a way of seeing what arches are enabled for a PPA?11:30
wgrantOdd_Bloke: Done. You'll need to reupload.11:30
wgrantOr recopy, in fact.11:30
wgrantOdd_Bloke: archive.processors11:30
Odd_Blokewgrant: Aha, great.11:31
Odd_Blokecjwatson: wgrant: One thing we need in our images is /etc/cloud/build.info which includes a serial (which, obviously, changes for each build). Is there a way that we can pass data in to the livefs.requestBuild call that we could consume during the live-build process?17:45
Odd_BlokeA brief examination of buildlivefs suggests not.17:47
cjwatsonOdd_Bloke: can you just use NOW which already exists?17:48
cjwatsonfor this very purpose17:48
cjwatsonecho "BUILDSTAMP=\"$NOW\"" >> config/binary17:48
Odd_BlokeOur serials are currently <DATE>.N where N is the index of the build during that day (when N>0).17:49
Odd_BlokeAnd we'd need to maintain that for trusty.17:49
cjwatsonSo, if you really had to maintain exactly that format (I decided it was not necessary to maintain it in cdimage), we could do that, but it'd take a launchpad-buildd rollout17:49
Odd_BlokeI mean, we don't use SUBPROJECT for anything. *looks around shiftily*17:50
cjwatsonhaha17:50
cjwatsonI wonder if it would make sense to let the livefs and livefs.requestBuild metadata override the build arguments precomputed by LP17:51
cjwatsonat least for datestamp17:52
cjwatsonthen you could pass metadata_override={"datestamp": whatever}17:52
cjwatsonthe only other place that lands is in /etc/media-info17:52
cjwatsonand I'm guessing you wouldn't in fact object to that being consistent17:52
cjwatsonor we could just make livefs.requestBuild take a version argument17:53
cjwatsonOdd_Bloke: can you file a bug on Launchpad for this, in any case?17:53
Odd_Blokecjwatson: Against Launchpad itself?17:54
cjwatsonyes17:54
Odd_Blokecjwatson: That's https://bugs.launchpad.net/launchpad/+bug/149607418:08
ubot5Ubuntu bug 1496074 in Launchpad itself "Enable passing version information to livefs builds" [Undecided,New]18:08
cjwatsonThanks18:08
cjwatsonOdd_Bloke: You'd be OK using NOW / BUILDSTAMP if you could override it?18:10
Odd_Blokecjwatson: I believe so, yes.18:10
cjwatsonOdd_Bloke: all right, will get that fixed for you, hopefully this week18:11
Odd_Blokecjwatson: Thanks!18:11
pgquiles_sorry if it's obvious but, whats wrong with my code? http://pastebin.ubuntu.com/12419392/ Apparently it does not get any bugs from Launchpad :-?18:32
cjwatsonpgquiles_: You can't iterate over the whole bug collection.  You can pick a bug target and iterate over bugs on that.18:37
cjwatsonOr search for something.18:37
pgquiles_cjwatson: what do you mean by "a bug target"? (that code was taken straing out of the wiki: https://help.launchpad.net/API/launchpadlib#Collections )18:39
pgquiles_ah, now I see what a bug_target is19:04
nottrobinhow can I give access to push to git repositories to someone who isn't the project owner?22:26
wgrantnottrobin: The project owner doesn't have any special access to Git repositories. The owner of the Git repository is a separate setting, and it is that person or team that has push access.22:42
nottrobinwgrant: thanks. is there any way to grant access to anyone else apart from the git repository owner?22:43
wgrantnottrobin: Not at this stage, though we'll likely be adding that functionality when we introduce customisable per-branch permissions.22:44
nottrobinwgrant: great22:44
cjwatsonnottrobin: It's usually best, for now, to just make the repository owned by a suitable team.22:44
nottrobincjwatson: aye. In this case, I'm trying to update the git repo from a script, and I don't want the script to have all the team permissions22:45
wgrantMany projects have a special committers team which doesn't have general project access, it just owns the repos.22:46
nottrobinyeah I could play around with that22:46
nottrobinthanks guys22:46

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!