1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 06:46:13 +01:00

Revert "Merge pull request #856 from bmwiedemann/verifymd5"

This reverts commit 29fb9a2dce, reversing
changes made to 34563aa7b2.
This commit is contained in:
Daniel Mach 2022-04-12 11:00:00 +02:00
parent 90ccc84f95
commit ff45f107bb

View File

@ -1255,13 +1255,6 @@ class Package:
self.in_conflict.remove(fname)
self.write_conflictlist()
def _compute_verifymd5(self):
md5str = ''
for f in self.filelist:
if f.name != '_link':
md5str += f.md5+' '+f.name+"\n"
return hashlib.md5(md5str.encode('utf-8')).hexdigest()
def info(self):
source_url = makeurl(self.apiurl, ['source', self.prjname, self.name])
r = info_templ % (self.prjname, self.name, self.absdir, self.apiurl, source_url, self.srcmd5, self.rev, self.linkinfo)
@ -2270,8 +2263,6 @@ rev: %s
def update_needed(self, sinfo):
# this method might return a false-positive (that is a True is returned,
# even though no update is needed) (for details, see comments below)
if sinfo.get('verifymd5') == self._compute_verifymd5():
return False
if self.islink():
if self.isexpanded():
# check if both revs point to the same expanded sources