Skip to content

Commit

Permalink
Remove orphan data; it's no longer available
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou committed May 6, 2024
1 parent fd485b3 commit 6c7f97e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Empty file removed data/orphans.json
Empty file.
5 changes: 2 additions & 3 deletions docs/update_portingdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ The following steps are needed to update pordingdb data:

(venv) $ python -u scripts/get-history.py --update data/history.csv | tee history.csv && mv history.csv data/history.csv

#. Update the maintainer and orphans lists::
#. Update the maintainer lists::

$ wget https://src.fedoraproject.org/extras/pagure_owner_alias.json -O data/pagure_owner_alias.json
$ wget https://churchyard.fedorapeople.org/orphans.json -O data/orphans.json

#. You can check how portingdb looks with the new data:

Expand All @@ -62,7 +61,7 @@ The following steps are needed to update pordingdb data:

#. Commit changes::

(venv) $ git commit -am 'Update history, badges, maintainers, orphans'
(venv) $ git commit -am 'Update history, badges, maintainers'

#. Push to a fork and create a PR. Put the jsondiff in the PR message; this command will put it in your clipboard (at least on X11)::

Expand Down
7 changes: 0 additions & 7 deletions portingdb/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,3 @@ def load_from_directories(data, directories):
if names:
nonpy_requirers.setdefault(kind, set()).update(names)
package['non_python_requirers'] = nonpy_requirers

orphans = data_from_file(directories, 'orphans')
status_change = orphans['status_change']
for name, isodt in status_change.items():
if name in packages:
last_change = datetime.datetime.fromisoformat(isodt)
packages[name]['last_repo_metadata_change'] = last_change

0 comments on commit 6c7f97e

Please sign in to comment.