Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857873 - www-apps/moodle-4.0.2: Downloads wrong release tarball 4.0 instead of 4.0.2
Summary: www-apps/moodle-4.0.2: Downloads wrong release tarball 4.0 instead of 4.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-13 09:38 UTC by Timo Gurr
Modified: 2022-07-14 00:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr 2022-07-13 09:38:48 UTC
moodle-4.0.2 ebuild has SRC_URI="https://download.moodle.org/download.php/direct/stable400/moodle-4.0.tgz" hardcoded and thus downloads the wrong release tarball 4.0 instead of 4.0.2:

[...]
>>> Emerging (1 of 1) www-apps/moodle-4.0.2::gentoo
>>> Downloading 'http://distfiles.gentoo.org/distfiles/1b/moodle-4.0.tgz'
--2022-07-13 11:31:54--  http://distfiles.gentoo.org/distfiles/1b/moodle-4.0.tgz
Auflösen des Hostnamens netzinfo.stadt-heilbronn.de… 10.133.1.102
Verbindungsaufbau zu netzinfo.stadt-heilbronn.de|10.133.1.102|:3128 … verbunden.
Proxy-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 61778671 (59M) [application/x-gzip]
Wird in »/usr/portage/distfiles/moodle-4.0.tgz.__download__« gespeichert.

/usr/portage/distfi 100%[===================>]  58,92M  --.-KB/s    in 0,1s    

2022-07-13 11:31:55 (451 MB/s) - »/usr/portage/distfiles/moodle-4.0.tgz.__download__« gespeichert [61778671/61778671]

 * moodle-4.0.tgz BLAKE2B SHA512 size ;-) ...                                                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking moodle-4.0.tgz to /var/tmp/portage/www-apps/moodle-4.0.2/work
[...]

Reproducible: Always

Steps to Reproduce:
1. emerge moodle (4.0.2)
2. see 4.0 instead of 4.0.2 being downloaded (and installed)
Actual Results:  
Downloads an incorrect tarball 4.0 instead of 4.0.2.

Expected Results:  
Download the correct tarball 4.0.2 instead of 4.0.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-14 00:40:16 UTC
Thanks, good spot.

(Also fixed the typo in commented out SRC_URI too.)
Comment 2 Larry the Git Cow gentoo-dev 2022-07-14 00:40:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a4e089eb718040ca8110e9e7c9c8b45c97b4ca3

commit 5a4e089eb718040ca8110e9e7c9c8b45c97b4ca3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-14 00:39:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-14 00:40:24 +0000

    www-apps/moodle: fix downloaded version
    
    Closes: https://bugs.gentoo.org/857873
    Signed-off-by: Sam James <sam@gentoo.org>

 www-apps/moodle/Manifest               |   1 +
 www-apps/moodle/moodle-4.0.2-r1.ebuild | 121 +++++++++++++++++++++++++++++++++
 2 files changed, 122 insertions(+)