Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d879f03
add sha256
faisalfakhro Apr 2, 2024
b45ada6
sha256/sha1 checksum priority
faisalfakhro Apr 3, 2024
bde1df4
update checksums.ini files with sha256
faisalfakhro Apr 5, 2024
d890bd9
remove md5, cksum
faisalfakhro Apr 5, 2024
65f1f01
build/pkgs/symengine_py/checksums.ini: Fix upstream_url
mkoeppe Apr 7, 2024
685b4dc
sage_bootstrap.tarball: After checking sha256, also check sha1 for co…
mkoeppe Apr 19, 2024
d75ca34
sage -package fix-checksum: If sha256 is not available, create it
mkoeppe Apr 19, 2024
626539b
Update checksums.ini for updated packages
mkoeppe Apr 19, 2024
a3ccd8d
update packages checksums.ini
faisalfakhro Apr 25, 2024
091aa47
Merge branch 'develop' into update_hashes
faisalfakhro Apr 27, 2024
03bfd92
Merge branch 'pip-24' into update_hashes
mkoeppe Apr 28, 2024
0fe263a
Merge branch 'gambit_remove' into update_hashes
mkoeppe Apr 28, 2024
4044324
sage -package fix-checksum :all:
mkoeppe Apr 28, 2024
f2f63e9
Merge remote-tracking branch 'upstream/develop' into update_hashes
mkoeppe May 2, 2024
d831891
build/pkgs/{editables,fricas}: Add sha256
mkoeppe May 2, 2024
7587edf
Merge branch 'singular-4.3.2p16' into update_hashes
mkoeppe May 5, 2024
840eea0
Merge branch 'update-libgc-8_2_6' into update_hashes
mkoeppe May 5, 2024
72b755a
build/pkgs/{gc,singular}: Add sha256
mkoeppe May 5, 2024
d955e50
Merge branch 'culler/develop' into update_hashes
mkoeppe May 5, 2024
8b0768a
build/pkgs/python3: Add sha256
mkoeppe May 5, 2024
1578923
Merge remote-tracking branch 'upstream/develop' into update_hashes
mkoeppe May 12, 2024
eb08315
sage -package fix-checksum :all:
mkoeppe May 12, 2024
8354962
Workaround for passing givaro library to linker on OSX
vbraun May 17, 2024
e0bb853
build/pkgs/fflas_ffpack: Use tarball regenerated using upstream libto…
mkoeppe May 18, 2024
9214971
build/pkgs/linbox: Use tarball regenerated using upstream libtool 2.4.7
mkoeppe May 18, 2024
6e791cf
build/pkgs/fflas_ffpack/spkg-install.in: Remove workaround for linkin…
mkoeppe May 18, 2024
d70a186
Merge branch 'update_hashes' into linbox_regenerate_tarballs
mkoeppe May 19, 2024
a8a8dd8
sage -package fix-checksum :all:
mkoeppe May 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sage -package fix-checksum: If sha256 is not available, create it
  • Loading branch information
Matthias Koeppe authored and faisalfakhro committed Apr 25, 2024
commit d75ca34e7088879925fe6de38eb6135fb200c192
2 changes: 1 addition & 1 deletion build/sage_bootstrap/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def fix_checksum(self, package_name):
if not os.path.exists(pkg.tarball.upstream_fqn):
log.info('Ignoring {0} because tarball is not cached'.format(package_name))
return
if pkg.tarball.checksum_verifies():
if pkg.tarball.checksum_verifies(force_sha256=True):
log.info('Checksum of {0} (tarball {1}) unchanged'.format(package_name, pkg.tarball_filename))
else:
log.info('Updating checksum of {0} (tarball {1})'.format(package_name, pkg.tarball_filename))
Expand Down
7 changes: 5 additions & 2 deletions build/sage_bootstrap/tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,19 @@ def _compute_sha256(self):
import hashlib
return self._compute_hash(hashlib.sha256())

def checksum_verifies(self):
def checksum_verifies(self, force_sha256=False):
"""
Test whether the checksum of the downloaded file is correct.
"""
if self.package.sha256:
sha256 = self._compute_sha256()
if sha256 != self.package.sha256:
return False
elif force_sha256:
log.warning('sha256 not available for {0}'.format(self.package.name))
return False
else:
log.warning('sha1 used for {0} checksum'.format(self.package.name))
log.warning('sha256 not available for {0}, using sha1'.format(self.package.name))
sha1 = self._compute_sha1()
return sha1 == self.package.sha1

Expand Down