aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--fidd.php7
-rw-r--r--lib/FIDD.php11
2 files changed, 14 insertions, 4 deletions
diff --git a/fidd.php b/fidd.php
index a702f87..b8b0b7b 100644
--- a/fidd.php
+++ b/fidd.php
@@ -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;
}
}