aboutsummaryrefslogtreecommitdiffstats
path: root/lib/FIDD.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/FIDD.php')
-rw-r--r--lib/FIDD.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/FIDD.php b/lib/FIDD.php
index 524aa0c..d2a1e5e 100644
--- a/lib/FIDD.php
+++ b/lib/FIDD.php
@@ -146,8 +146,17 @@ class FIDD
$key = str_replace('.iso.md5', '.iso', basename($f));
$data['file'] = $key;
$data['md5'] = self::get_checksum_value($f);
+ $md5gpg = str_replace('.iso.md5', '.md5.gpg', basename($f));
+ $data['md5.gpg'] = $md5gpg;
+
break;
- case 'sha1': $data['sha1'] = self::get_checksum_value($f); break;
+ case 'sha1':
+ $data['sha1'] = self::get_checksum_value($f);
+ $sha1gpg = str_replace('.iso.sha1', '.sha1.gpg', basename($f));
+ $data['sha1.gpg'] = $sha1gpg;
+
+ break;
+ case 'sha512': $data['sha512'] = self::get_checksum_value($f); break;
case 'langs': $data['langs'] = implode(', ', explode("\n", trim(file_get_contents($f)))); break;
}
}