/srv/irclogs.ubuntu.com/2017/05/18/#launchpad.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
alkisgHi, I'm trying to create a recipe for 2 git branches but it fails, could I have some help please? https://code.launchpad.net/~alkisg/+recipe/ltsp+debian-packaging08:23
alkisgnest-part packaging lp:~alkisg/+git/ltsp-debian debian debian disable-upstreamed-patches => this pulls the folder "debian" from branch "disable-upstreamed-patches" and puts it into a folder named "debian", right?08:24
* alkisg tries removing the branch name completely, while setting it as the default in the branch options...08:30
cjwatsonLooks like it *should* work.  Maybe worth trying to run git-build-recipe locally.08:31
alkisgThank you cjwatson, will try that locally08:31
alkisgcjwatson: it worked on launchpad when I removed the branch name. The correct syntax is to put the branch name in the end, and NOT like this, right? "nest-part packaging lp:~alkisg/+git/ltsp-debian disable-upstreamed-patches debian debian"08:34
alkisgAh, in the repository options, I also changed "Default branch", from "refs/heads/master", which was the default there but didn't exist at all, to "refs/heads/disable-upstreamed-patches"08:36
alkisgOne of those 2 changes made it work...08:36
cjwatsonoh yeah, "nest-part packaging lp:~alkisg/+git/ltsp-debian disable-upstreamed-patches debian debian" looks more correct08:39
alkisgcjwatson: let me find the docs link that had it wrong there...08:39
cjwatsonwait, no, I do see the contradictory docs08:39
cjwatsonsorry, it's been a while08:39
cjwatsonyeah, branch comes last, I'm fairly sure the docs are correct08:40
alkisghttps://help.launchpad.net/Packaging/SourceBuilds/Recipes#nest-part => nest-part packaging lp:~some-person/some-project debian debian master-with-packaging08:40
alkisgAh ok08:40
cjwatsona non-existing default branch would indeed break things, as the code is at the moment08:40
cjwatsonso I think your change to the default branch was what fixed it08:41
alkisgOK, I'll try to put the branch name back to the recipe, and rebuild, while having the default branch correct in the options08:41
alkisgThis should verify what we assume08:41
cjwatsonit doesn't have to be refs/heads/disable-upstream-patches necessarily, but it does have to exist08:41
alkisgI pushed that repository with git push, and it auto-selected a default which didn't exist...08:49
cjwatsonOdd08:51
alkisgcjwatson: no, it failed to build again08:51
alkisgI only put back the "disable-upstream-patches" back in the recipe now, no other change08:52
alkisgTo sum up, "nest-part packaging lp:~alkisg/+git/ltsp-debian debian debian" builds properly, and "nest-part packaging lp:~alkisg/+git/ltsp-debian debian debian disable-upstream-patches" fails08:52
cjwatsonthat's because you've misspelled your branch08:53
alkisgomg08:53
cjwatsondisable-upstreamed-patches08:54
alkisgVery sorry, I don't know where that bad copy/paste came from08:54
alkisgBuild succeeded08:58
alkisgSo the only problem was, when I ran `git push` to initially create the repository, it defaulted to 'refs/heads/master', while my repository had no branch called 'master'. And going to the web interface and setting an existing one there, fixed the issue.08:59
alkisgThank you very much08:59
cjwatsonThis is https://bugs.launchpad.net/git-build-recipe/+bug/1683913 BTW09:07
ubot5Ubuntu bug 1683913 in git-build-recipe "git-build-recipe assumes that HEAD exists in the source repositories" [Undecided,New]09:07
nacccjwatson: if a user has used any tooling to specify their launchpad user name, is that stored anywhere currently in ~/ ? Just trying to determine if there's anything I can try to depend on to derive the LP user of the current user other than asking (or them setting it separately in their git-config)15:59
cjwatsonif they've used launchpadlib then there's lp.me16:00
nacccjwatson: which file does that get stored in? I only see cache directories under .launchpadlib16:01
cjwatsonand I suppose you could try 'bzr lp-login' if it's only on a setup path16:01
nacccjwatson: oh true, there is that16:01
nacccjwatson: although i'd rather the git tooling didn't need to rely on bzr :)16:01
naccon some level, i guess we're doing what `bzr lp-loging` does for the git side16:02
naccrbasak: --^16:02
nacc*login not loging16:02
cjwatsonnacc: in the launchpadlib cache it's not stored locally directly; python-keyring has credentials, and those correspond to LP database rows which identify what user they're for16:02
nacccjwatson: ah16:03
cjwatsonsure, I understand you don't want to rely on bzr, I was just thinking of it as one of a collection of heuristics you could run to try to guess16:03
nacccjwatson: yep, absolutely16:03
cjwatsons/cache/case/ above16:03
nacccjwatson: and in the snap it doesn't matter too much :)16:03
=== chihchun is now known as chihchun_afk
=== santa is now known as Guest19199
alkisgWhat's the suggested method to maintain translations from launchpad git branches? Rosetta can't yet import nor export to git, right?18:38
alkisgShould we set up a .git=>.bzr code import, and then tell rosetta to use the .bzr mirror for importing the translations, and a third bzr branch to export them?18:39
=== JanC is now known as Guest79336

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