Skip to content

Commit

Permalink
Merge pull request #510 from oliverkurth/stable-3.3
Browse files Browse the repository at this point in the history
release 3.3.12
  • Loading branch information
oliverkurth authored Dec 17, 2024
2 parents 0511340 + c0fbf2b commit 653f4cf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-tdnf-rpms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
docker run --rm -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build ./ci/build-rpms.sh
- name: upload RPMs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: tdnf-rpms
path: rpms
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)

project(tdnf VERSION 3.3.11 LANGUAGES C)
project(tdnf VERSION 3.3.12 LANGUAGES C)
set(VERSION ${PROJECT_VERSION})
set(PROJECT_YEAR 2023)

Expand Down
1 change: 1 addition & 0 deletions client/packageutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ TDNFPkgInfoFilterNewest(
{
pPkgInfo->pNext = ppPkgInfos[i];
pPkgInfo = ppPkgInfos[i];
pPkgInfo->pNext = NULL;
}
}

Expand Down
15 changes: 15 additions & 0 deletions pytests/tests/test_reposync.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,18 @@ def test_reposync_newest(utils):
assert mulversion_pkgname_found

shutil.rmtree(synced_dir)


# reposync with --newest-only option caused an infinite loop
def test_reposync_newest_multiplerepos(utils):
reponame = "photon-srpms"
workdir = WORKDIR
utils.makedirs(workdir)

ret = utils.run(['tdnf',
'--enablerepo={}'.format(reponame),
'--newest-only',
'--urls',
'reposync'],
cwd=workdir)
assert ret['retval'] == 0

0 comments on commit 653f4cf

Please sign in to comment.