| === mwhudson is now known as zz_mwhudson | ||
| === caktux_ is now known as caktux | ||
| === mpt_ is now known as mpt | ||
| === wedgwood is now known as Guest12754 | ||
| === caktux_ is now known as caktux | ||
| === isha is now known as Guest75493 | ||
| Guest75493 | can anyone confirm that I can get superseded ubuntu packages with the launchpad python api? | 16:18 |
|---|---|---|
| === TRB143_ is now known as TRB143 | ||
| cjwatson | Guest75493: for some time, at least. they will eventually be garbage-collected, although not in a timeframe you're especially likely to care about | 16:42 |
| cjwatson | you can for example use Archive.getPublishedBinaries | 16:43 |
| cjwatson | then each of the resulting BPPHs has a binaryFileUrls() method (if you're using the "devel" version of the API) | 16:44 |
| Guest75493 | the timeframe I am interested in is at least three months. | 16:49 |
| cjwatson | that'll be fine | 16:49 |
| cjwatson | the absolute bare minimum for GCing old binaries is 18 months and in practice it's always rather more than that | 16:50 |
| Guest75493 | I see. So if I know I had mysql-client_5.5.35-0ubuntu0.12.04.1_all.deb a few months ago, because of disaster I lost that file, and the package has been updated in the meantime, I can fetch that file again? | 16:54 |
| cjwatson | sure | 17:03 |
| Guest75493 | Cool, thank you very much. | 17:04 |
| cjwatson | you can just download it from the web UI | 17:04 |
| cjwatson | https://launchpad.net/ubuntu/precise/amd64/mysql-client | 17:04 |
| cjwatson | pick your architecture although it won't matter much for _all.deb | 17:05 |
| Guest75493 | I see, that is good to know. | 17:05 |
| Guest75493 | Right now the api gives mit a 503 for getPublishedBinaries ... I gues since this is not such an important service, it is not so stable? | 17:06 |
| cjwatson | no, it should always work fine. what exact call are you making? | 17:06 |
| Guest75493 | ubuntu = launchpad.distributions["ubuntu"] | 17:07 |
| Guest75493 | archive = ubuntu.main_archive | 17:07 |
| Guest75493 | archive.getPublishedBinaries() | 17:07 |
| cjwatson | you can't just call it with no arguments, that's a ridiculously huge search to ask for | 17:07 |
| Guest75493 | ... i was allready wondering ... | 17:07 |
| cjwatson | give it binary_name and version | 17:08 |
| cjwatson | but for a single file you're better off just using the web UI | 17:08 |
| Guest75493 | eventually I will have to rebuild a mirror in the exact state as it was on day X, so I will need all packages for a specific release and architecture | 17:09 |
| Guest75493 | cool, works. thank you very much!!! | 17:12 |
| cjwatson | np | 17:16 |
| === debfx_ is now known as debfx | ||
| === Ursinha is now known as Ursinha-afk | ||
| === TheLordOfTime is now known as teward | ||
| === Ursinha-afk is now known as Ursinha | ||
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!