~bdrung/ddeb-retriever/+git/main:develop

Last commit made on 2023-02-15
Get this branch:
git clone -b develop https://git.launchpad.net/~bdrung/ddeb-retriever/+git/main
Only Benjamin Drung can upload to this branch. If you are Benjamin Drung please log in for upload directions.

Branch merges

Branch information

Name:
develop
Repository:
lp:~bdrung/ddeb-retriever/+git/main

Recent commits

af669eb... by Benjamin Drung

Add README.md

Signed-off-by: Benjamin Drung <email address hidden>

99455fe... by Benjamin Drung

feat: Make grace period duration configurable

Make grace period duration configurable to ease local testing.

Signed-off-by: Benjamin Drung <email address hidden>

b898e28... by Benjamin Drung

Catch lazr.restfulclient.errors.BadRequest: HTTP Error 400: Bad request

```
2023-02-08 18:18:21,183 DEBUG Got ddeb: libgettextpo0-dbgsym 0.21-11 in lunar i386 (pocket: Release)
2023-02-08 18:18:21,187 DEBUG Got ddeb: libasprintf0v5-dbgsym 0.21-11 in lunar amd64 (pocket: Release)
2023-02-08 18:18:21,189 DEBUG Got ddeb: ruby-websocket-driver-dbgsym 0.6.3-3build5 in lunar armhf (pocket: Proposed)
2023-02-08 18:18:21,190 DEBUG Got ddeb: ruby-websocket-driver-dbgsym 0.6.3-3build5 in lunar arm64 (pocket: Proposed)
Traceback (most recent call last):
  File "/home/bdrung/projects/ubuntu/ddeb-retriever/./ddeb-retriever", line 4, in <module>
    ddeb_retriever.main()
  File "/home/bdrung/projects/ubuntu/ddeb-retriever/ddeb_retriever.py", line 174, in main
    for pub in binary_pubs:
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 819, in __iter__
    next_get = self._root._browser.get(URI(next_link))
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 439, in get
    response, content = self._request(url, extra_headers=headers)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 429, in _request
    raise error
lazr.restfulclient.errors.BadRequest: HTTP Error 400: Bad request
Response headers:
---
-content-encoding: gzip
cache-control: no-cache
connection: close
content-length: 90
content-type: text/html
date: Wed, 08 Feb 2023 17:18:21 GMT
server: Apache/2.4.18 (Ubuntu)
status: 400
vary: Accept-Encoding
---
Response body:
---
b'<html><body><h1>400 Bad request</h1>\nYour browser sent an invalid request.\n</body></html>\n'
---
```

Signed-off-by: Benjamin Drung <email address hidden>

a3d079f... by Benjamin Drung

fix pycodestyle's ambiguous name l

Signed-off-by: Benjamin Drung <email address hidden>

25830a4... by Benjamin Drung

Add pylint overrides and TODOs for them

Signed-off-by: Benjamin Drung <email address hidden>

5c2750a... by Benjamin Drung

Adress pylint complaints

Signed-off-by: Benjamin Drung <email address hidden>

a6bb226... by Benjamin Drung

Wrap long lines

Wrap lines that are longer than 99 characters.

Signed-off-by: Benjamin Drung <email address hidden>

cdfdb08... by Benjamin Drung

Move unit tests into separate test_archive_tools.py file

Signed-off-by: Benjamin Drung <email address hidden>

e2d56e6... by Benjamin Drung

Add .pylintrc

Signed-off-by: Benjamin Drung <email address hidden>

6eb54c2... by Benjamin Drung

refactor: Use datetime.timestamp()

Use `timestamp()` method of datetime instead of calculating it manually.

Signed-off-by: Benjamin Drung <email address hidden>