/srv/irclogs.ubuntu.com/2012/10/03/#launchpad.txt

=== matsubara is now known as matsubara-afk
=== michaelh is now known as michaelh|away
shakaranHi, I am using launchpadapi I am wondering if is possible get a list with all branches for a project?07:50
maxbshakaran: lp.projects[project_id].getBranches(status=("Development", "Experimental", "Mature", "Merged", "Abandoned"))07:51
maxbwithout a status param it defaults to all *active* statuses07:52
shakaranmaxb: nice, but then how I get the project_id? I still reading the docs for basics07:53
shakaranmaxb: I am reading https://launchpad.net/+apidoc/1.0.html#project for find the project_id attribute or something similar but no luck08:06
wgrantshakaran: It's just the name from the URL08:09
wgranteg. lp.projects['bzr'] for https://launchpad.net/bzr08:10
shakaranwgrant: weird, I try that for "ubuntu" and I get AttributeError: https://api.launchpad.net/1.0/ubuntu object has no attribute 'getBranches'08:15
wgrantshakaran: Ah, Ubuntu's not a project, but a distribution.08:19
wgrantAnd you *really* don't want to try to get all of its branchres08:19
wgrantbranches08:19
wgrantThere are several hundred thousand.08:19
shakaranI know, I need get all here: https://code.launchpad.net/ubuntu I am doing a automatic script for update a apport spec bug pattern in several branches08:20
wgrantWhat are you actually trying to do?08:21
wgrantUbuntu has several hundred thousand branches, not just several08:21
wgrantAnd there's no way you're interested in all of them :)08:21
shakaranI manually did with a bash script for 2 projects https://code.launchpad.net/~shakaran/ubuntu/quantal/unity/bug-pattern-update/+merge/12726608:21
shakaranhttps://code.launchpad.net/~shakaran/ubuntu/quantal/connman/bug-pattern-update/+merge/12743908:22
shakarannow I am searching the same for change automaticly in other projects08:22
shakaranI will do batch request of 100 or so, it takes days, but I get to update all08:22
wgrantYou probably only care about the quantal branch for each source package08:22
shakaranyeap, only quantal08:23
wgrantI'd get a list of Ubuntu source packages and then grab the branches for each, perhaps08:23
wgrantThere's no point iterating through all of Ubuntu's branches when you only care about 20000 or so trunks08:23
wgrantIt's probably also more effective to grab the source package from a mirror that's close to you08:23
wgrantAnd avoid grabbing the full history from Launchpad entirely.08:23
shakaranthen, what should be the best way to get that packages names with launchpad api?08:23
SamB_MacG5why launchpad?08:24
SamB_MacG5why not just use the debian stuff?08:25
wgrantExactly.08:25
wgrantfor c in main restricted universe multiverse; do wget -q -O - http://archive.ubuntu.com/ubuntu/dists/quantal/$c/source/Sources.bz2 | bzcat | awk '/^Package: / {print $2}'; done08:26
wgrantWill rather quickly get you a list of package names08:27
shakaranso that is ;) 20246 packages ;)08:27
shakaranwgrant: my old bash script looks like http://pastebin.com/inN1sTYd I will update fetching the projects name from your trick. Thanks08:31
=== czajkowski changed the topic of #launchpad to: Reduced Builder capacity at present | Help contact: czajkowski| Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad
=== mpt_ is now known as mpt
DarxusAnyone care to interpret this build failure for me?  https://code.launchpad.net/~darxus/+archive/wayland-daily/+recipebuild/31690711:56
DarxusUgh, no, not that.11:56
Darxushttps://code.launchpad.net/~darxus/+archive/wayland-gtk-daily/+recipebuild/31848411:58
wgrantDarxus: bzr-builder recipe format 0.4 isn't fully supported by Launchpad yet11:59
wgrantYou'll need to use 0.3 instead.11:59
DarxusThanks, I am actually trying rebuilding with that already.11:59
jelmerhmm, we still haven't landed the new python-debian on the buildds yet?12:04
wgrantThere's an RT for that.12:05
jelmerwgrant: I know, I was hoping it had been processed at this point..12:07
nassHi everyone. Anyone here to help me ?12:10
jelmerhi nass12:10
nasshi jelmer12:10
nassthankx for your answer and time12:10
nassI just uploaded some samba build to my brand new PPA repo but can't see anything on the web...12:11
nassI'm ashamed I missed something...12:11
nassdput said upload was ok, but I didn't get any email back.12:11
nassNow this is what I get :12:12
nasssufred@svn1:/var/cache/pbuilder/result$ sudo dput ppa:nass/samba samba_3.6.8-1ubuntu1_amd64.changes Package has already been uploaded to ppa on ppa.launchpad.net Nothing more to do for samba_3.6.8-1ubuntu1_amd64.changes12:12
nassMaybe it's because I uploaded with "-u" unsigned option (even if files were signed).12:15
mgzright, signing issues often mean no email back12:16
mgznass: you need to sign the .changes file, and the key you use needs to be associated with your launchpad account12:17
nassOh. Didn't read that anywere. Thank you for showing me the direction.12:23
nassEverything worked just fine :-): https://launchpad.net/~nass/+archive/samba12:58
nassThank you guys for your precious help. :-)12:59
=== yofel_ is now known as yofel
apwi have been seeing PPA upload failures where the stated error is a bad email address but the error in the failure seems to be valid: http://launchpadlibrarian.net/118208269/rCCURosRLHlEDDV5S5HyzfJQ8EU.txt apparently is the actual error that triggers the upload failure13:47
wgrantI wondered when someone would ask about that :)13:49
wgrantapw: Can you show me the changes file? Strip the sig13:49
apwwgrant, i don't think i have it, they get dropped when dput is successful13:50
wgrantapw: dput doesn't delete them locally13:51
wgrantAnd someone's uploaded that package at least twice13:51
apwwgrant, yep its a daily upload, whatever the tip of our tree is (if changed) is uploaded13:51
apwwgrant, the code which does it does all of them, and oneiric uploaded fine, lucid did not.  different emails of course13:52
wgrantapw: Ah13:52
wgrantCan you generate the changes file manually somehow?13:52
wgrantIt looks like Changed-By is probably corrupt13:52
apwwgrant, i'll go ask the automation to do it again13:52
wgrantSo it'd be nice to see what it was.13:52
apwwgrant, i think i have it building now ...14:02
wgrantapw: Locally, or successfully uploaded and building on Launchpad?14:03
apwwgrant, making the source package only14:04
wgrantAh14:05
apwwgrant thanks for your help, found the issue, its a source package issue14:11
wgrantGreat14:12
BluesKajW: Failed to fetch http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found...yet the ppa is in play for most ..server not up to date perhaps ?15:50
tsimpsonBluesKaj: quantal?15:51
BluesKajyup15:51
BluesKajtsimpson, ^15:51
tsimpsonwell, the PPA is for precise15:51
tsimpsonBluesKaj: http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/dists/ nothing for quantal there15:52
ScottKBluesKaj: I didn't realize is was for quantal.  For quantal 4.9.2 is in the archive.  No PPA.15:52
BluesKajScottK, ok thanks15:53
BluesKajand tsimpson15:53
BluesKajok, now it's in the archive ... I guess quantal was briefly overlooked16:01
ScottKBluesKaj: No.  It was built in quantal-proposed so it wouldn't break quantal and then recently copied over.  No overlooking.16:02
BluesKajScottK, recently must mean 15 mins ago :)16:03
ScottKA little longer, but then the publisher has to run.16:04
BluesKajanyway it's there now , that's what countsd16:04
DarxusDoes launchpad contain bzr branches containing the source of released packages?  Specifically for the gtk+3.0 source package for quantal....16:30
DarxusI feel like there was some automated import of those somewhere.  But I guess that may have been imports from debian.16:30
tsimpsonfor ubuntu, you can try code.launchpad.net/ubuntu/+source/<source package>16:31
Darxustsimpson: Yeah, what I want is exactly an lp: source containing the source from https://launchpad.net/ubuntu/+source/gtk+3.0/3.6.0-0ubuntu2 - but I don't see it there.16:32
Darxus...For an automated daily build.16:32
tsimpsonbest place to ask would be #ubuntu-devel I guess16:34
DarxusThanks.16:34
=== deryck is now known as deryck[lunch]
=== czajkowski changed the topic of #launchpad to: Reduced Builder capacity at present | Help contact:-| Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad
dobeyDarxus: lp:ubuntu/gtk+3.0 would give you the source from the development version of ubuntu. if it's not the latest version, then there's probably an issue with importer17:10
Darxusdobey: Yes, that's the conclusion from #ubuntu-devel, thanks.  The import is somehow broken, I opened a bug:  https://bugs.launchpad.net/udd/+bug/106108317:13
ubot5Ubuntu bug 1061083 in Ubuntu Distributed Development "lp:ubuntu/gtk+3.0 import is failing since 2012-08-22" [Undecided,New]17:13
DarxusIs this the best place to ask about daily build recipes?  I'd like to create a recipe that uses lp:~darxus/weston/trunk for the base branch, and uses nest-part to import the packaging from lp:ubuntu/weston.  What I don't know how to do is the 1 line modification I need to make to the packaging before its imported.  Currently I have a branch I copied and modified, but that doesn't get automatically updated, which is what I'm trying to do.  Is ...17:45
Darxus... there a way to merge a modification into a branch *before* nest-part'ing it, or some other way to do this?17:45
DarxusOh, huh, I guess I can just nest-part it and then do the merge... buildig doesn't happen until after anyway.  This is going to be awesome :P17:46
=== deryck[lunch] is now known as deryck
=== jrgifford is now known as Guest9882
DarxusHmm, one of the changes I made in my branch of the packaging was bumping the version due to this:  "INFO File weston_0.95.0-0ubuntu3+20120928~quantal1.tar.gz already exists in wayland-daily, but uploaded version has different contents. See more information about this error in https://help.launchpad.net/Packaging/UploadErrors."17:57
DarxusI... don't think I can bump the version, with a merge, when the changelog is changing every time?17:57
DarxusOh, hmm, that's... one of my own versions.  Maybe that's just not a problem.17:59
maxbRight, if it's necessary that you be able to rebuild a recipe multiple times per day, you either need to diligently work the revno of *every* branch involved into the version, or use something like {time} in the version18:01
DarxusYeah, no need to do it every day.  Thanks.18:01
DarxusI was thinking it was conflicting with... the version of the debian package I based it on or something.18:02
* maxb eyes that gtk+3.0 failure with some surprise18:02
maxboh well, let's retry it and see what happens18:05
DarxusThanks.18:05
Darxusbzr: ERROR: bzrlib.errors.InvalidHttpResponse: Invalid http response for https://xmlrpc.launchpad.net/bazaar/: Unable to handle http code 502: Bad Gateway18:14
Darxus- https://launchpadlibrarian.net/118259426/buildlog.txt.gz18:14
Darxus:/18:14
maxbSounds like a transient failure18:16
DarxusAgreed, I requested another build.18:20
DarxusYeah, didn't get the same error a second time.  (Needed to fix the stuff I was merging.)18:29
DarxusHmm, this isn't working.  I'm trying to create a branch that, when merged, just removes " --fail-missing" from a line.  Can I do that?  I tried just branching the existing branch, making the modification, and then merging my new branch on top of the existing branch.  Which is complaining about conflicts.18:36
Darxus"Any lines that are indented by two spaces, and are directly below your nest line, will act on the nested branch."  "Error parsing recipe:4:3: Not allowed to indent unless after a 'nest' line"18:40
Darxus...18:40
DarxusAh, "unless"... well, it's a nest-part line.18:41
DarxusAny idea what I'm missing?  https://code.launchpad.net/~darxus/+recipe/weston-daily-test  packaging-fix is just supposed to remove " --fail-missing", and is causing conflicts.18:50
=== LordOfTime is now known as TheLordOfTime
apwi am wondering if PPAs retry depwait build failures automatically, anyone know?19:10
TheLordOfTimethey should19:22
TheLordOfTimeeventually19:22
apwcool thanks19:24
=== Mkaysi_ is now known as Mkaysi
wgrantapw: They do. Hourly, same as the primary archive.21:57
wgrantAnd they consider inter-PPA and PPA->primary dependencies properly and everything, as you'd expect.21:57
apwwgrant, and there we are it has jumped back into the queue.  thanks for the background22:08
jfcaronIs there a way to get a permanent URL to the latest version of a file within someone's repository?23:45
jfcaronI want to regularly retrieve the latest file, but the machine where I want to do this does not have bzr, so I've been using wget with a copy+pasted URL from a browser.23:45
jfcaronThere must be a better way.23:46
wgrantjfcaron: What's the URL you're wgetting?23:46
jfcaron"http://bazaar.launchpad.net/~jfcaron/+junk/TRIUMFBeamTest/download/jfcaron%40phas.ubc.ca-20121003230855-8v8vggnp5gvk09u8/standard_analysis.c-20120918023544-aoznsq63nx9e3ft3-1/standard_analysis.C"23:46
jfcaronBut it gets dynamically regenerated every time I push.23:46
wgrantSounds like you grabbed that from a revision view23:47
wgrantReplace the revision ID (the path segment starting with jfcaron) with "head:"23:47
wgrantThe current file view (the Files tab) always uses head: URLs23:47
jfcaronI get resource not found when I try: http://bazaar.launchpad.net/~jfcaron/+junk/TRIUMFBeamTest/download/head:/standard_analysis/standard_analysis.C23:48
wgrantYou changed the /standard_analysis.c-20120918023544-aoznsq63nx9e3ft3-1/ segment too23:48
jfcaronBut replacing the "download" part with "view" allows me to view the file.23:48
jfcaronOh, yes I did.23:48
wgrantThat's a file ID, which needs to be preserved23:48
jfcaronWill that part change between revisions?23:49
wgrantIt uniquely identifies a file throughout its history, not a specific version23:49
jfcaronSo if I go to: http://bazaar.launchpad.net/~jfcaron/+junk/TRIUMFBeamTest/view/head:/standard_analysis/standard_analysis.C and click on "download file", that is a permanent URL?23:49
wgrantIt only changes if the file is renamed, basically.23:49
wgrantRight, that's permanent, though it will track renames.23:49
wgranteg. if I rename standard_analysis.C to foo.C, and rename something else to standard_analysis.C, that URL will now actually give the content of foo.C23:50
jfcaronAh ok.  I thought that the part with the date string was related to revisions, but now that I look carefully, 2012-09-18 is when I first versioned the file.23:50
jfcaronThis means I can write a little script that automatically downloads the latest version.  Thanks wgrant.23:51
wgrantYep23:51
wgrantThe file ID is generated when you first add a file, and is used to track history on that file across renames etc.23:51
wgrantIt's rarely seen outside that sort of URL.23:51
jfcaronI guess using just the actual filename in the URL is convenient for viewing, but not so good for tracking in case you rename the file.23:52

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