aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2016-07-01 23:00:01 +0200
committerManuel Hiebel <leuhmanu@mageia.org>2016-07-01 23:00:01 +0200
commitcb81b8ef6858fe7309e89b744afec4290ff27db4 (patch)
tree1a3d915ea91382a8add07babfb1f212dbf2ae1b7 /lib
parent7c5877e2293a4526ee7a05727db38bdb447a78cb (diff)
downloadfidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar
fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar.gz
fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar.bz2
fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar.xz
fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.zip
update to get gpg and sha512
Diffstat (limited to 'lib')
-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;
}
}