Skip to content

Commit

Permalink
Update repositories for the Git migration
Browse files Browse the repository at this point in the history
The [community] repository is merged into the [extra] repository during
the Git migration. [testing] is replaced with [core-testing] and
[extra-testing].
  • Loading branch information
jelly authored and anthraxx committed May 19, 2023
1 parent 972cdd7 commit 7a459ef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
9 changes: 3 additions & 6 deletions pacman/arch/x86_64/pacman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,16 @@ LocalFileSigLevel = Optional
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[testing]
[core-testing]
Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community-testing]
[extra-testing]
Include = /etc/pacman.d/mirrorlist

[community]
[extra]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
Expand Down
12 changes: 6 additions & 6 deletions test/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ def test_edit_group_bug_url_core(db, client):
set_and_assert_group_data(db, client, url_for('tracker.add_group'), bug_ticket='')


@create_package(name='foo', version='1.2.3-4', database='community')
@create_package(name='foo', version='1.2.3-4', database='extra')
@logged_in
def test_edit_group_bug_url_community(db, client):
set_and_assert_group_data(db, client, url_for('tracker.add_group'), bug_ticket='', database='community')
def test_edit_group_bug_url_extra(db, client):
set_and_assert_group_data(db, client, url_for('tracker.add_group'), bug_ticket='', database='extra')


def test_add_needs_login(db, client):
Expand Down Expand Up @@ -392,10 +392,10 @@ def test_affected_to_status_testing_only(db, client):
status = affected_to_status(Affected.affected, 'foo', avg.fixed)
assert status == Status.testing

@create_package(name='foo', version='1.2.3-3', database='community')
@create_package(name='foo', version='1.2.3-4', database='community-testing')
@create_package(name='foo', version='1.2.3-3', database='extra')
@create_package(name='foo', version='1.2.3-4', database='extra-testing')
@create_group(id=DEFAULT_GROUP_ID, packages=['foo'], affected='1.2.3-3', fixed='1.2.3-4')
def test_affected_to_status_community_testing(db, client):
def test_affected_to_status_extra_testing(db, client):
avg = CVEGroup.query.get(DEFAULT_GROUP_ID)
status = affected_to_status(Affected.affected, 'foo', avg.fixed)
assert status == Status.testing
Expand Down
2 changes: 1 addition & 1 deletion tracker/pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

archs = ['x86_64']
primary_arch = 'x86_64'
repos = {'x86_64': ['core', 'extra', 'community', 'multilib', 'testing', 'community-testing', 'multilib-testing']}
repos = {'x86_64': ['core', 'core-testing', 'extra', 'extra-testing', 'multilib', 'multilib-testing']}
configpath = './pacman/arch/{}/pacman.conf'
handles = {}
chdir(basedir)
Expand Down
4 changes: 2 additions & 2 deletions tracker/view/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

def get_bug_project(databases):
bug_project_mapping = {
1: ['core', 'extra', 'testing'],
5: ['community', 'community-testing', 'multilib', 'multilib-testing']
1: ['core', 'core-testing', 'extra', 'extra-testing'],
5: ['multilib', 'multilib-testing']
}

for category, repos in bug_project_mapping.items():
Expand Down

0 comments on commit 7a459ef

Please sign in to comment.