Compare commits
7 Commits
v25.6.23
...
52e9a1ae0e
Author | SHA1 | Date | |
---|---|---|---|
52e9a1ae0e | |||
b386d89d6c
|
|||
![]() |
59229f280b | ||
![]() |
4c57725862 | ||
![]() |
8ded12a7cf | ||
![]() |
0180242d2a | ||
![]() |
bf29716008 |
@@ -2,6 +2,7 @@ version: '2'
|
|||||||
|
|
||||||
# Run the following once:
|
# Run the following once:
|
||||||
# docker compose run --rm archweb_web python manage.py migrate
|
# docker compose run --rm archweb_web python manage.py migrate
|
||||||
|
# docker compose run --rm archweb_web python manage.py loaddata mirrors/fixtures/mirrorprotocols.json
|
||||||
# docker compose run --rm archweb_web python manage.py loaddata main/fixtures/arches.json
|
# docker compose run --rm archweb_web python manage.py loaddata main/fixtures/arches.json
|
||||||
# docker compose run --rm archweb_web python manage.py loaddata main/fixtures/repos.json
|
# docker compose run --rm archweb_web python manage.py loaddata main/fixtures/repos.json
|
||||||
# docker compose run --rm archweb_web python manage.py createsuperuser --username=admin --email=admin@artixweb.local
|
# docker compose run --rm archweb_web python manage.py createsuperuser --username=admin --email=admin@artixweb.local
|
||||||
@@ -11,6 +12,8 @@ version: '2'
|
|||||||
# docker compose run --rm archweb_web python manage.py pgp_import ./config/keyring
|
# docker compose run --rm archweb_web python manage.py pgp_import ./config/keyring
|
||||||
## go to /admin/devel/developerkey/ and set the owner (and parent) for the ownerless key
|
## go to /admin/devel/developerkey/ and set the owner (and parent) for the ownerless key
|
||||||
## go to /admin/sites/site/1/change/ and set the domain
|
## go to /admin/sites/site/1/change/ and set the domain
|
||||||
|
## clone the mirrors repo
|
||||||
|
# docker compose run --rm archweb_web python manage.py loaddata /mirrors/mirrors.fixture.json
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@@ -25,5 +25,14 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"protocol": "https"
|
"protocol": "https"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pk": 9,
|
||||||
|
"model": "mirrors.mirrorprotocol",
|
||||||
|
"fields": {
|
||||||
|
"is_download": false,
|
||||||
|
"default": false,
|
||||||
|
"protocol": "ftp"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@@ -33,7 +33,7 @@ server {
|
|||||||
try_files "" @proxy;
|
try_files "" @proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(packages|groups|opensearch|feeds) {
|
location ~ ^/(packages|groups|opensearch|feeds|mirrors|mirrorlist) {
|
||||||
try_files "" @proxy;
|
try_files "" @proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime, timezone
|
||||||
from operator import attrgetter
|
from operator import attrgetter
|
||||||
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
@@ -99,7 +99,7 @@ def keys(request):
|
|||||||
user_key_ids = frozenset(user.userprofile.pgp_key[-16:] for user in users
|
user_key_ids = frozenset(user.userprofile.pgp_key[-16:] for user in users
|
||||||
if user.userprofile.pgp_key)
|
if user.userprofile.pgp_key)
|
||||||
|
|
||||||
not_expired = Q(expires__gt=datetime.utcnow()) | Q(expires__isnull=True)
|
not_expired = Q(expires__gt=datetime.now(timezone.utc)) | Q(expires__isnull=True)
|
||||||
master_keys = MasterKey.objects.select_related('owner', 'revoker',
|
master_keys = MasterKey.objects.select_related('owner', 'revoker',
|
||||||
'owner__userprofile', 'revoker__userprofile').filter(
|
'owner__userprofile', 'revoker__userprofile').filter(
|
||||||
revoked__isnull=True)
|
revoked__isnull=True)
|
||||||
@@ -155,7 +155,7 @@ def keys_json(request):
|
|||||||
'group': 'master'
|
'group': 'master'
|
||||||
} for key in master_keys)
|
} for key in master_keys)
|
||||||
|
|
||||||
not_expired = Q(expires__gt=datetime.utcnow()) | Q(expires__isnull=True)
|
not_expired = Q(expires__gt=datetime.now(timezone.utc)) | Q(expires__isnull=True)
|
||||||
signatures = PGPSignature.objects.filter(not_expired, revoked__isnull=True)
|
signatures = PGPSignature.objects.filter(not_expired, revoked__isnull=True)
|
||||||
edge_list = [{ 'signee': sig.signee, 'signer': sig.signer }
|
edge_list = [{ 'signee': sig.signee, 'signer': sig.signer }
|
||||||
for sig in signatures]
|
for sig in signatures]
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
from base64 import b64encode
|
from base64 import b64encode
|
||||||
from datetime import datetime
|
from datetime import datetime, timezone
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from bencode import bencode
|
from bencode import bencode
|
||||||
@@ -24,7 +24,7 @@ def torrent_data():
|
|||||||
data = {
|
data = {
|
||||||
'comment': 'comment',
|
'comment': 'comment',
|
||||||
'created_by': 'Arch Linux',
|
'created_by': 'Arch Linux',
|
||||||
'creation date': int(datetime.utcnow().timestamp()),
|
'creation date': int(datetime.now(timezone.utc).timestamp()),
|
||||||
'info': {
|
'info': {
|
||||||
'name': 'arch.iso',
|
'name': 'arch.iso',
|
||||||
'length': 1,
|
'length': 1,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
-e git+https://github.com/fredj/cssmin.git@master#egg=cssmin
|
-e git+https://github.com/fredj/cssmin.git@master#egg=cssmin
|
||||||
Django==5.1.9
|
Django==5.1.10
|
||||||
IPy==1.1
|
IPy==1.1
|
||||||
Markdown==3.3.7
|
Markdown==3.3.7
|
||||||
bencode.py==4.0.0
|
bencode.py==4.0.0
|
||||||
|
@@ -145,6 +145,10 @@ tr :nth-child(7) {
|
|||||||
background-image: url(data:image/gif;base64,R0lGODlhFQAEAPABAOTu/wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAgABACwAAAAAFQAEAAACDYwfoAvoz9qbZ9FrJC0AOw==);
|
background-image: url(data:image/gif;base64,R0lGODlhFQAEAPABAOTu/wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAgABACwAAAAAFQAEAAACDYwfoAvoz9qbZ9FrJC0AOw==);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #334450;
|
||||||
|
}
|
||||||
|
|
||||||
.results.results td,
|
.results.results td,
|
||||||
.results.results th {
|
.results.results th {
|
||||||
border: 1px solid #858585;
|
border: 1px solid #858585;
|
||||||
@@ -158,7 +162,7 @@ tr :nth-child(7) {
|
|||||||
background-color: #111;
|
background-color: #111;
|
||||||
}
|
}
|
||||||
|
|
||||||
.results th {
|
.results th, #pkgsearch {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #0f3147;
|
background-color: #0f3147;
|
||||||
border: 1px solid #0A6682;
|
border: 1px solid #0A6682;
|
||||||
|
@@ -26,10 +26,8 @@
|
|||||||
<div><label for="id_repo_{{ repo_name|lower }}" title="Target Repository {{ repo_name }}">[{{ repo_name|lower }}]</label>
|
<div><label for="id_repo_{{ repo_name|lower }}" title="Target Repository {{ repo_name }}">[{{ repo_name|lower }}]</label>
|
||||||
<input type="checkbox" name="repo_{{ repo_name|lower }}" id="id_repo_{{ repo_name|lower }}" class="repo_filter" value="{{ repo_name|lower }}" checked="checked"/></div>
|
<input type="checkbox" name="repo_{{ repo_name|lower }}" id="id_repo_{{ repo_name|lower }}" class="repo_filter" value="{{ repo_name|lower }}" checked="checked"/></div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<div><label for="id_mine_only" title="Show only packages packaged by me">Only Mine</label>
|
<div><label for="id_mine_only" title="Show only packages packaged by me">Only Mine</label>
|
||||||
<input type="checkbox" name="mine_only" id="id_mine_only" value="mine_only"/></div>
|
<input type="checkbox" name="mine_only" id="id_mine_only" value="mine_only"/></div>
|
||||||
{% endif %}
|
|
||||||
<div><label for="id_pending" title="Packages with not enough signoffs">Only Pending Approval</label>
|
<div><label for="id_pending" title="Packages with not enough signoffs">Only Pending Approval</label>
|
||||||
<input type="checkbox" name="pending" id="id_pending" value="pending"/></div>
|
<input type="checkbox" name="pending" id="id_pending" value="pending"/></div>
|
||||||
<div><label> </label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
|
<div><label> </label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
|
||||||
|
@@ -153,6 +153,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://wiki.archlinux.org/title/Getting_involved"
|
<li><a href="https://wiki.archlinux.org/title/Getting_involved"
|
||||||
title="Getting involved">Getting involved</a></li>
|
title="Getting involved">Getting involved</a></li>
|
||||||
|
<li><a href="https://devblog.archlinux.page" title="Dev Blog">Dev Blog</a></li>
|
||||||
<li><a href="https://gitlab.archlinux.org/archlinux/"
|
<li><a href="https://gitlab.archlinux.org/archlinux/"
|
||||||
title="Official Arch projects (git)">Projects in Git</a></li>
|
title="Official Arch projects (git)">Projects in Git</a></li>
|
||||||
<li><a href="https://wiki.archlinux.org/title/DeveloperWiki"
|
<li><a href="https://wiki.archlinux.org/title/DeveloperWiki"
|
||||||
|
@@ -2,6 +2,8 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load package_extras %}
|
{% load package_extras %}
|
||||||
{% load todolists %}
|
{% load todolists %}
|
||||||
|
{% load tz %}
|
||||||
|
{% load humanize %}
|
||||||
|
|
||||||
{% block title %}Arch Linux - Todo: {{ list.name }}{% endblock %}
|
{% block title %}Arch Linux - Todo: {{ list.name }}{% endblock %}
|
||||||
|
|
||||||
@@ -103,7 +105,15 @@
|
|||||||
<span class="{{ pkg.status_css_class }}">{{ pkg.get_status_display }}</span>
|
<span class="{{ pkg.status_css_class }}">{{ pkg.get_status_display }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ pkg.user|default:"" }}</td>
|
<td>
|
||||||
|
{% if pkg.user %}
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
{{ pkg.user }} <span title="{{ pkg.last_modified|timezone:user.userprofile.time_zone|date:"Y-m-d H:i T" }}">({{ pkg.last_modified|naturaltime }})</span>
|
||||||
|
{% else %}
|
||||||
|
{{ pkg.user }} <span title="{{ pkg.last_modified|date:"Y-m-d H:i T" }}">({{ pkg.last_modified|naturaltime }})</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Reference in New Issue
Block a user