/srv/irclogs.ubuntu.com/2012/04/03/#launchpad-dev.txt

=== wgrant changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: wgrant | Firefighting: - | Critical bugtasks: 4*10^2
wgrantNice easy one: https://code.launchpad.net/~wgrant/launchpad/html5-charset/+merge/10054100:54
StevenKwgrant: Meh, self-review :-P00:55
StevenKwgrant: r=me00:57
wgrantThanks00:58
StevenKNo Production OOPSes? Oh dear.02:54
lifelesscarob may have been rebooted02:54
StevenKIt has not.02:55
StevenKBut we have Soyuz, qas and staging mails, just no prod.02:55
lifelessoh02:59
lifelessit will be chewing on fdt probably then02:59
StevenKFor an hour?02:59
lifelesshas on extreme cases in the past03:01
wgrantStevenK: It's contending with prune.03:21
wgrantpostgres is not very happy.03:21
wgrantIt's later than normal today, but still going.03:21
wgrant(you'll see it's been like an hour late for a few days)03:21
wgrantIt's also eating a lot of RAM, oddly.03:24
wgrantlifeless: 12MB OOPSes make bson sad.04:19
wgrantAh05:12
wgrantSo that's why the report was so slow.05:12
wgrantSomething is terribly broken.05:12
wgrantAlthough given the UA it might just be someone trying to exploit us.05:13
wgrantWho knows.05:13
wgrantIt looks almost like someone assumed that every quoted string on the page was a URL05:13
StevenK... Odd.05:14
wgrantYeah05:14
wgrantIt's an archival crawler.05:14
wgrantWhich seems to be misbehaving.05:14
wgrantYay05:15
wgrantNo new bug write timeouts.05:15
wgrantI am safe.05:15
StevenKwgrant: Still can't figure out what to do in terms of Bug:+secrecy and multi-pillar bugs.05:15
wgrantStevenK: Oh?05:15
wgrantStevenK: I hadn't heard about this.05:16
StevenKwgrant: Currently, the UI omits private if it's a multi-pillar bug.05:16
stubHeh. Write robust code and forget WTF it does.05:16
wgrantStevenK: Ah05:16
StevenKwgrant: But that won't help given IBug.transistionToInformationType() will toss an exception no matter what you choose if the bug is multi-pillar.05:17
wgrantStevenK: That needs to stop.05:17
StevenKwgrant: And we do what instead?05:18
lifelessonly proprietary ones cannot be multi-pillar05:18
wgrantStevenK: In the end only PROPRIETARY is forbidden to have multi-pillar05:18
wgrantWhat he said.05:18
StevenKShould I change that now, then?05:19
wgrantProbably. You can remove the FF at the same time.05:20
StevenKRight.05:20
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/forbid-proprietary-multi-pillar/+merge/10055706:24
wgrantStevenK: What's with line 33?06:31
wgrantThe new cancel_url.06:31
StevenKwgrant: Bug:+secrecy doesn't have a cancel link, it has annoyed me while I was working on the UI and it's one line.06:33
wgrantHeh06:33
wgrantk06:33
wgrant+ def test_hide_private_option_for_multipillar_proprietary_bugs(self):06:33
wgrantStevenK: Oxymoron06:33
StevenKRight, but it will change when the UI does to show information_type.06:35
wgrantStevenK: The idea is that you can't make a multipillar bug proprietary.06:36
wgrantStevenK: The starting condition for that test is that there is a proprietary multipillar bug.06:36
wgrantThat's invalid state.06:36
StevenKHmmm.06:37
danhgMorning06:39
StevenKwgrant: Sadly, we can't test that with the UI having not switched.06:40
wgrantStevenK: Indeed.06:45
wgrantStevenK: Anyway, that test is invalid. Fix it if you can, otherwise delete it.06:49
adeuringgood morning07:42
StevenKwgrant: But no approval? :-(08:04
=== gmb changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: gmb | Firefighting: - | Critical bugtasks: 4*10^2
gmbWell, today's going to be a fun one if I've got only a partially-working desktop.09:24
gmbSigh09:24
gmb(Also, what's the word for that feeling you get when you encounter a bit of Launchpad that you're largely responsible for and wish fervently that you'd had the time to make it less clunky?)09:25
lifelessgmb: guilt09:26
gmblifeless: Yeah. At least it's fleeting, because I have no actual soul.09:27
czajkowskigmb: see this is why I wanted people to reply to my thread on low bugs so I could get people to help09:27
czajkowskibu nobody replied :(09:27
lifelessczajkowski: well, I thought about replying09:27
czajkowskibut you saw to many low bugs :)09:27
lifelessczajkowski: see, do you mean low as in 'unimportant' or low as in 'easy' / 'approachable' ?09:27
gmbczajkowski: Scheisse. I actually meant to, and then got sidetracked. But my question was the same as lifeless's.09:28
lifelessczajkowski: if you mean 'unimportant', well, it seems odd to motivate people to work on unimportant bugs.09:28
czajkowskilifeless: the latter09:28
lifelessczajkowski: look for bugs tagged trivial or easy.09:28
czajkowskiideally what I want to do is well get 5 bugs that people would love to see done in LP, but dont ahve the time and I could try and get people more involved and woarkign on patches09:28
lifelessczajkowski: there are many - hundreds - of those that are also 'high' importance.09:28
czajkowskinods09:28
czajkowskibut thought i'd start with low first adn see if some of the smaller tweaks could get people involved and interested09:29
czajkowskiand a place to start09:29
lifelessczajkowski: 'low' importance does not mean small.09:29
lifelessit means less important. :)09:29
lifelessczajkowski: but perhaps we're talking at cross purposes. Let me ask instead, why are you talking about 'low' bugs: what is attractive about them, and do you mean the same thing as I do when I say 'low' ?09:31
czajkowskihmm09:32
czajkowskiso imo low was small tweaks to lp that people would like to see like the example I gave about cc'ing someone when you send a contact this person mail09:32
czajkowskilifeless: I was also just looking to get people talking and for people t suggest bugs09:32
czajkowskibut that didn't happen :/09:33
lifelessassertion: there are small tweaks that are important, and small tweaks that are less important. What association do you see between 'low' importance and 'small tweak' ?09:33
czajkowskilifeless: I just started with low as a starting point, if you found me bugs that were high I'd also promote them :)09:34
lifelessczajkowski: so, I'm a bit like a terrier here :)09:35
lifelesswhy did you start with low; do you perhaps assume that low importance has some correlation with size of effort to fix the bug ?09:35
czajkowskilifeless:  nope no correlation09:35
czajkowskiI start with low as a place to start09:35
lifelessI find that fascinating09:36
lifelessanyhow, the place I suggest you start is the tag 'trivial'09:36
czajkowskilifeless: care to suggest a bug then :)09:37
czajkowskiat least you;ve entered into discussion09:37
czajkowskiwhich is fascinating :)09:37
lifelesshttps://bugs.launchpad.net/launchpad-project/+bugs?field.tag=trivial09:37
lifelessbug 86930909:38
_mup_Bug #869309: If folders in repository have unicode names, sometimes I get KeyError <navigation> <oops> <trivial> <unicode> <loggerhead:Triaged> < https://launchpad.net/bugs/869309 >09:38
czajkowskilifeless: thank you09:38
gmbczajkowski: I would suggest bug 353097 and bug 249471 as good ones to tackle. The second might be slightly more complex, IDK.09:40
_mup_Bug #353097: Marking a Bug as "Requiring Forwarding" text is missleading... <better-forwarding> <confusing-ui> <docs> <lp-bugs> <trivial> <Launchpad itself:Triaged> < https://launchpad.net/bugs/353097 >09:40
_mup_Bug #249471: Reporting a bug with an attachment produces two info alerts <lp-bugs> <trivial> <Launchpad itself:Triaged> < https://launchpad.net/bugs/249471 >09:40
lifelessnn all09:40
czajkowskilifeless: nn09:40
cjwatsonlifeless: IME Launchpad's low importance doesn't always imply that the bug is of low importance to the user or group who reported it (and rightly so; Launchpad has to prioritise)10:21
cjwatsonlifeless: for instance, bug 930217 is likely to be of considerable use to Ubuntu, but it was triaged as Low, and I think that was reasonable for LP to do (we could have used up some stakeholder credit to escalate it to Critical, but I think it's better to use such credit for things we can't fix ourselves)10:24
_mup_Bug #930217: Make proposed pocket useful for staging uploads <qa-ok> <Launchpad itself:Fix Released by cjwatson> < https://launchpad.net/bugs/930217 >10:24
wgrantcjwatson: Don't get lifeless started on multitenancy :)10:28
StevenKHaha10:28
cjwatsonHeh, well, my other argument would be that if you want to get more people involved then the message of "these are things we aren't currently planning to fix at all, but you can" is stronger than "these are things we're planning to fix eventually, but you can make it happen sooner"10:29
jmlcjwatson: perhaps we just need to spread the message that "not Critical" means "not planning on fixing at all"10:38
wgrantAnd "Critical" means "planning on fixing eventually but it'll never actually happen" :)10:39
jml"'The matter is under consideration' means we have lost the file. 'The matter is under active consideration' means we are trying to find the file."10:40
=== almaisan-away is now known as al-maisan
cjwatsonYes Minister++10:47
cjwatsonor was that Yes Prime Ministere?10:47
cjwatson-e10:47
jpdsBoth.10:47
jmlcjwatson: I think it was Yes Minister.11:12
mabacsalgado, lost you11:53
salgadoyep, trying to reconnect11:54
benjilet me check my notes12:09
benji...for which channel I want to be in12:09
deryckMorning, everyone.12:56
czajkowskideryck: ello12:56
StevenKbenji!!12:59
benjiStevenK!!13:00
* benji hears string music well up in the background.13:00
rick_hStevenK: you still around? I wanted to chat with you. I broke the convoy build setup you had by adding a makefile :/13:00
StevenKbenji: Oh, just that you fixed the unclean reactor terribleness with a branch of awesome13:00
benjiI hope I got it all.  I'm not very... twisty13:01
StevenKrick_h: Ish. Chatting with friends and trying to avoid work.13:01
rick_hStevenK: ah, gotcha. Nvm then. I'll send an official email and all that13:02
rick_hgo get more wine!13:02
StevenKrick_h: Chatting with friends on *IRC*13:04
StevenKrick_h: So I'm here at the computer, so you can ask if you wish.13:04
rick_hStevenK: just wanted to have the conversation on updating hte packaging and see what needs to be done. I figure I need to update the Makefile I added to not bork whatever needs to go on13:04
rick_hwe've filed an RT to get it on production so figured I should unbreak things before that happens, but not sure what you had in mind when you mentioned 'unsucking' the packaging13:05
StevenKrick_h: We should fix the packaging before we go forward to production.13:06
rick_hStevenK: rgr, so I wanted to ping and get a list of what we need to do so that we can get it done.13:06
StevenKrick_h: So I think you should organise a call/hangout with you, me, the Landscape guy that admits to knowing what convoy is, and the same for U1.13:07
rick_hok, I'll put together an email. I know sidnei is brazil-ish, not sure on the landscape guy. Will try to find some common time ground.13:08
jmldo any of you have any tricks for pairing on LP hacking?13:08
StevenKrick_h: It's a one time call, so I'm happy to take a hit if I need to -- like 10pm or so.13:08
rick_hStevenK: rgr, thanks. Don't think it'll be necessary, but will see13:09
rick_hjml: I thought some people did some shared desktop stuff in hangouts recently that worked ok, but not really13:09
jmlrick_h: ta13:11
jmlHow do I run ec2 from lp-dev-utils?13:11
rick_hjml: you have to add it to your path. I symlinked the stuff into my ~/bin dir13:12
rick_hhad the same question myself heh13:12
jmlrick_h: thanks.13:13
StevenKI symlinked into ~/bin, it was easier13:18
jmlplease remind me what set_schema in zcml means13:24
StevenKThat you have permission to set the attributes exported by that class13:24
wgrantinterface13:26
jmlah ok.13:27
jmlso, IIUC, you only need view permissions on IPerson to call createPPA?13:27
wgrantThat seems to be correct.13:28
jmlwgrant: where's the logic that prevents me from creating a PPA in ~wgrant?13:29
wgrantjml: There probably isn't any.13:30
wgrantAha13:32
wgrantIt's not my fault after all13:32
wgrantI apparently reviewed the commit that exports the method (despite it being before I started), but it was not added to ViewRestricted13:33
wgrantWhen did that change...13:33
jmlwgrant: but ViewRestricted means "you need launchpad.View", right? surely createPPA should require launchpad.Edit?13:36
wgrantjml: One would certainly think so.13:36
wgrantI'm saying that your analysis is correct.13:36
wgrantNot that the current state of things is in any way justifiable.13:36
jmlwgrant: oh ok.13:36
jmlwgrant: as some context, james_w and I are exploring the LP code base, hoping to make whatever changes we need so a bot can create private, commercial PPAs.13:37
wgrantjml: Didn't you land a change recently to permit creating private ones?13:38
jmlwgrant: maybe. I tend to forget things like that.13:38
StevenKOr Cody did.13:38
wgrant[r=julian-edwards][bug=814567] Add an API to create private PPAs,13:38
wgrantrather than changing privacy status post creation.13:38
wgrant'twas jml13:39
jmlyeah, found the branch.13:39
jmlright. that was clever of me.13:39
jmlI guess it's the 'commercial' bit that we need now.13:40
jmlYou know, as an interview question, SteveA asked me how I would build a permission system. I wish I had had a really good answer.13:42
wgrantZTK's is terrible.13:42
wgrantBut it's one of the better ones I've seen.13:42
StevenKOh, it doesn't serve as a warning?13:42
StevenKjml: One of my interview questions with mdz was him asking me which VCSes I had experience with, and I commented that I had a few personal projects in tla, which prompted him to say "You've done ... *real* work ... with tla?"13:44
james_wjames-w is not allowed to make private PPAs13:49
jmlit's hard to judge ZTK's permission system based on LP13:49
james_wwhich is <person on which the PPA is being created> is not allowed to make private PPAs13:50
jmlexcept that you learn that it's not easy for developers to use13:50
jmljames_w: yeah, that's from Archive.validatePPA13:50
jmljames_w: which does a *manual* check for celebrity membership13:50
jmljames_w: rather than asked if person has launchpad.Commercial on something13:50
nigelbStevenK: haha, that's a great question :P13:53
=== al-maisan is now known as almaisan-away
jmlbasically, LP doesn't really have an internal language for "this user is allowed to make private stuff"14:06
jmlmaybe it should have something like launchpad.AppendRestricted14:11
jmlhow do I shell into the ec2 machine that the ec2 script creates?14:18
jmlas in, what key do I use?14:18
rick_hjml: I think it creates the key and in the log it mentions the name? not 100% sure thogh14:21
jmlrick_h: there's a *lot* of log14:28
rick_hjml: yea, but when you run it dumps out to terminal the startup bits as it builds up for the ec2 instance14:28
rick_hit's in there before the instance fires up I believe14:29
rick_hjml: if you look at the instance in the ec2 web tools I htink it lists what the key is that it's using? bah, I got this to work once, but not needed to do it again14:29
jmlhmm. nope.14:30
jmlI mean, there's a key there, but I can't get at it.14:31
rick_hright, but does it give a hint for the filename to look for locally?14:31
* rick_h goes to peek at the aws console14:31
jmlrick_h: no, it doesn't.14:33
rick_hjml: so when I click on my running instace in the ec2 web console it says the key pair name on the left?14:34
jmlrick_h: yes. where am I expected to find that on my laptop?14:35
rick_hI don't recall, but if you updatedb/locate does it come up?14:35
jmlrick_h: no, it doesn't.14:36
rick_hbah sorry, don't recall then. Maybe someone else knows.14:36
jmlrick_h: well, thank for trying.14:37
=== matsubara-afk is now known as matsubara
jmlrick_h: the trick is to ssh in as the 'ec2test' user14:44
rick_hjml: doh, thanks14:45
jcsackettwe need an ec2 ssh command.14:46
jcsackettwell, maybe not need.14:46
jmljames_w:   ssh -A ec2test@ec2-184-73-132-244.compute-1.amazonaws.com14:47
jmljcsackett: it'd be pretty easy to do.14:47
jmljcsackett: I remember asking myself "why didn't I do that when I first thought of it?" when I added ec'2 list'14:48
jcsackettec2 list, btw, is a fantastic command. :-P14:48
* rick_h goes to look up ec2 list14:48
jcsackettjml: yeah, it doesn't strike me as that difficult. might look at it when i next have slack time.14:48
jcsackettrick_h: it lists all your running instances. handy way to make sure you don't leave something running.14:48
rick_hah, very cool then. I tend to hit the webui which can be a pita14:49
jcsackettrick_h: yeah. and the verbose options tell you which branches are running with what instance ids. which is handy when you then want to `ec2 kill` something.14:50
rick_hooh, json decode backtrace :/14:50
jcsackettbasically, the less i have to jump to the webui, the happier i am.14:50
rick_hyea, definitely14:50
james_wjml, http://www.debian-administration.org/article/Using_GNU_screen%27s_multiuser_feature_for_remote_support14:52
rick_hgmb: a bit of reading if you get some time please? https://code.launchpad.net/~rharding/launchpad/email_notice_959482/+merge/9999515:02
gmbrick_h: Sure thing.15:02
rick_hgmb: first real change in this area, so feel free to be a bit brutal to show me the ropes and beat proper things into my head.15:02
gmbOkidoke.15:02
* gmb cracks knuckles15:02
* rick_h runs and hides15:02
jml:(15:41
jmlhttps://code.launchpad.net/~jml/launchpad/create-commercial-ppa/+merge/100635 up for review15:56
rick_hdanhg: ping, my MP with the email and updated wording is here https://code.launchpad.net/~rharding/launchpad/email_notice_959482/+merge/9999515:57
rick_hdanhg: the reasoning/etc are tied into the bug and MP description, I think that'll answer most of your questions you had via email15:57
=== deryck is now known as deryck[lunch]
gmbrick_h: Approved with comments (all about tests and documentation).16:17
rick_hgmb: ty much will peek at the damage16:21
gmbrick_h: The code looks fine; good work!16:22
rick_hgmb: thanks, I might understand how this stuff works yet! :)16:22
gmb:)16:22
benjigmb: if you have a minute, I have a small branch for review: https://code.launchpad.net/~benji/launchpad/bug-972456/+merge/10064516:23
gmbbenji: Sure16:23
abentleyabel: could you please review https://code.launchpad.net/~abentley/launchpad/celery-job-feature-flag/+merge/100647 ?16:24
gmbbenji: Approved.16:25
benjigmb: thanks16:27
abentleygmb: Could you please review https://code.launchpad.net/~abentley/launchpad/celery-job-feature-flag/+merge/100647 ?16:37
gmbabentley: Sure16:37
gmbMerge proposals are like buses...16:37
gmbAnyway.16:37
gmbabentley: Approved; nice work.16:50
abentleygmb: Thanks.16:50
=== gmb changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugtasks: 4*10^2
=== deryck[lunch] is now known as deryck
stokachuhi, using python-launchpadlib to retrieve messages the date_created field are unicode strings instead of datetime objects, is this expected?17:52
stokachuthe parent bug will return a datetime object so i was curious17:53
rick_hstokachu: update your version of waddlib, that was fixed a week or two ago I think17:55
stokachurick_h: ok ill do that, i saw the bug where the date_created field in a bug was fixed not sure if it extended to messages17:56
rick_hI think it was fairly general17:56
stokachuok17:56
stokachudid the fix make it into pypi?17:58
rick_hbelieve so17:58
rick_hyea, 1.3.1 mentions the datetime bug17:59
stokachui have waddlib 1.3.1 installed17:59
rick_hok, then you might submit a new bug on it with the steps to reproduce please (or a patch :) )17:59
stokachuok sounds good, just making sure it was an oversight18:00
stokachurick_h: im going to file a bug and hopefully get a patch but just for my sake could you look at this snip: http://pastebin.ubuntu.com/913394/18:02
rick_hhmm, you're not accessing it via the object interface so not sure you'll get anything but that string18:03
rick_hI think what the wadllib and such do is convert that dict access to message.date_created or something18:03
rick_hbased on the object definition from the wadl file18:03
rick_hat least that's my understanding18:04
stokachuah makes sense, so im probably just calling it incorrectly18:04
rick_hall the tests are doing things like xx.get_parameter('a_date').get_value()18:07
rick_hwhich return a datetime object18:07
stokachuhmmm ok ive been looking through the collections doc but im sure im doing something wrong18:08
rick_hyea, well you're at the lplib layer which uses wadllib underneath so not sure how it exposes it18:08
stokachuyea im not totally sure either, every way i slice it comes back as dict18:15
stokachubug.message is a collection object18:16
stokachuwhen doing a bug.messages.resource_type_link18:18
stokachuu'https://api.launchpad.net/1.0/#message-page-resource'18:18
stokachuthat doesn't exist in the api18:18
rick_hsec, trying something out18:20
stokachucool no worries18:21
rick_hsorry, not quite an api pro heh18:21
stokachume either, took me a week to understand that person and team were the same thing :X18:21
stokachuandd my internet craps out18:29
salgadois there a way to do sequence unpacking in TAL?  I thought there was but can't seem to find out how18:31
rick_hstokachu: hmm, so what comes back to you is really just a dict plain and simple. It seems like there shuold be a way to get a real object out of there but don't see it with casual print dir()'ing18:32
stokachurick_h: ok, yea im getting that same impression18:33
jcsackettgiven a set of bug ids, is there a set based way to feed them to bug search? i see bugparams can take a bug param, but that looks like a single thing, not a set thing. i'd rather not iterate over the whole set.18:35
rick_hstokachu: http://pastebin.ubuntu.com/913443/18:38
rick_hok, so that's some playing, it doesn't support negative indices18:38
rick_hand that comes out as a datetime object18:38
rick_hnot a string18:38
stokachuah18:38
rick_hhttp://pastebin.ubuntu.com/913444/18:38
rick_his a bit better with the output18:38
stokachuok cool, thanks! :)18:39
rick_hso hopefully that helps a little bit, sorry18:39
stokachurick_h: thats perfect18:44
stokachurick_h: wish it allowed negative indices18:44
stokachuguess i could do message = bugs.messages[len(bugs.messages.entries)]18:46
rick_hstokachu: yea, not sure if there's a way to get the length and guess the right index off of it18:46
rick_hthere's a property for count or size I saw while dumping out dir() of things18:47
rick_htry dir(bug.messages)18:47
stokachuah lemme look into that18:47
salgadorick_h, do you know if there's a way to do sequence unpacking in TAL?18:50
rick_hsalgado: sorry, I know next to nothing of tal18:54
salgadorick_h, heh, ok.  no worries18:54
lifelesscjwatson: so, I agree; you'll note I didn't end up recommending 'start with trivial+high', just 'trivial', once I felt I understood czajkowski's desire a bit better19:12
lifelesscjwatson: and yeah, we have actually speculated about a very einsteinian model for importance and sorting :)19:12
cjwatsonright, more important to be fixable easily than to be important, in this case19:16
cjwatsonof course there's also the importance/urgency inequality19:17
lifelessfortunately we don't have urgency, it doesn't exist :P19:17
cjwatsonit gives you a simpler and probably more usable model, certainly; still leaves you mapping two not-quite-parallel dimensions onto one :)19:18
cjwatsonI agree that that trade-off was worthwhile, but it's something contributors will likely be thinking about19:19
=== ajmitch_ is now known as ajmitch
jonohey folks21:59
lifelesshi22:23
salgadoStevenK, hey there.  it'd be great if you could review https://code.launchpad.net/~linaro-infrastructure/launchpad/team-engineering-view-ui/+merge/100707 for us (it seems like you're the on call reviewer today?)22:24
StevenKsalgado: On the phone, I'll look afterwards.22:25
salgadoStevenK, thanks a lot!22:26
cjwatsonAre there any examples in LP of something whose DB/Python representation is multiple levels, but which we collapse down to one level for exposure in the web service API?  Say the Python representation is Foo.Bar.attribute, but I'd like to have the API be more like foo.attribute.22:27
cjwatsonI'm not quite familiar enough with the patterns and so it's hard to grep for.22:27
StevenKcjwatson: SPPH does that when it exports things from SPR.22:28
cjwatsonAh, of course.  Thanks.22:28
StevenKreturn self.sourcepackagerelease.<>22:28
cjwatsonSo just exported() in the interface and a @property in the model.  Great.22:29
StevenKWith a test, that should be great.22:29
cjwatsonI'm trying to do something similar in PackageUploadSource.22:29
jonohas anyone here got any experience with intltool-update? I am trying to generate a .POT file for a .desktop like file I can import into Launchpad22:32
cjwatsonOnly in conjunction with autoconf/automake, where you do @INTLTOOL_DESKTOP_RULE@ in Makefile.am and declare the files in desktop* targets and it takes care of the rest.22:33
cjwatsonThat's a fair bit to pull in if you aren't already using automake, though.22:33
jonocjwatson, from what I understand i I have POTFILE.in in my po/ dir and just run intltool-update --pot --gettext-package=foobar it should process my file and generate a .POT file22:34
cjwatson  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'22:34
jonothe problem is that it is not generating the file22:34
cjwatsonpossibly helpful if you want to unpick all those expansions22:34
=== salgado is now known as salgado-afk
jonoI have no idea what that is :-)22:35
cjwatsonAh, that's the other end, that merges the translations into an output .desktop file22:35
jonogotcha22:36
jonoso I have the following in foo.desktop:22:36
jono[Desktop Entry]22:36
jonoEncoding=UTF-822:36
jono_Name=MyApplication22:36
jono_Comment=A useful application that does useful things22:36
cjwatsonsomething like what you said sounds right, though it needs to be POTFILES.in, not POTFILE.in22:37
jonoand then in a po/ dir I have POTFILES.in with foo.desktop in it22:37
jonoand I run: intltool-update --pot --gettext-package=foobar22:37
jonobut then there is no output22:37
cjwatsonit has a --verbose22:37
jonoahhh22:38
jonoit says: None of the files in POTFILES.in contain strings marked for translation.22:38
jono -- which is odd as I have underscore before the keys in the .desktop file22:38
lifelessjono: -> #launchpad, I suspect you'll get more help there22:39
jonolifeless, it was pretty quiet earlier when I asked, but will try again22:39
jonothanks cjwatson22:39

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