summaryrefslogtreecommitdiffstats
path: root/checkpkgist/get
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-29 14:16:07 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-29 14:16:07 +0200
commit7221c1279b48309e5decad7267299cb9285a6d6b (patch)
tree7c308b849cf90b9a23629b21327a8f44fc867862 /checkpkgist/get
parentb3813115e187b341c7709cd41e2e19d422780986 (diff)
checkpkgist: refresh
Diffstat (limited to 'checkpkgist/get')
-rwxr-xr-xcheckpkgist/get9
1 files changed, 8 insertions, 1 deletions
diff --git a/checkpkgist/get b/checkpkgist/get
index b5ecf46..ab432b8 100755
--- a/checkpkgist/get
+++ b/checkpkgist/get
@@ -1,3 +1,10 @@
#!/bin/sh
-wget 'http://rpms.famillecollet.com/rpmphp/get.php?table=packagist' -O rpmphp.json
+mv rpmphp.json.prev /tmp
+if wget 'http://rpms.famillecollet.com/rpmphp/get.php?table=packagist' -O rpmphp.json.new
+then
+ cp rpmphp.json rpmphp.json.prev && \
+ cp rpmphp.json.new rpmphp.json && \
+ echo done
+ colordiff rpmphp.json.prev rpmphp.json
+fi \ No newline at end of file