diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2016-07-01 23:00:01 +0200 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2016-07-01 23:00:01 +0200 |
commit | cb81b8ef6858fe7309e89b744afec4290ff27db4 (patch) | |
tree | 1a3d915ea91382a8add07babfb1f212dbf2ae1b7 | |
parent | 7c5877e2293a4526ee7a05727db38bdb447a78cb (diff) | |
download | fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar.gz fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar.bz2 fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.tar.xz fidd-cb81b8ef6858fe7309e89b744afec4290ff27db4.zip |
update to get gpg and sha512
-rw-r--r-- | fidd.php | 7 | ||||
-rw-r--r-- | lib/FIDD.php | 11 |
2 files changed, 14 insertions, 4 deletions
@@ -13,9 +13,10 @@ // params -$prefix = 'mageia5-alpha1'; -$bcd_path = 'mageia5-alpha1'; -$bcd_url = 'rsync://isoqa@bcd.mageia.org/isos/%s/'; +$prefix = 'cauldron'; +$bcd_path = 'cauldron'; +#$bcd_url = 'rsync://isoqa@bcd.mageia.org/isos/%s/'; +$bcd_url = 'rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/iso/%s/'; // don't touch below 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; } } |