packages: pldnotify.awk - add vim patch checker
glen
glen at pld-linux.org
Fri Mar 26 12:05:42 CET 2010
Author: glen Date: Fri Mar 26 11:05:42 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- add vim patch checker
---- Files affected:
packages:
pldnotify.awk (1.82 -> 1.83)
---- Diffs:
================================================================
Index: packages/pldnotify.awk
diff -u packages/pldnotify.awk:1.82 packages/pldnotify.awk:1.83
--- packages/pldnotify.awk:1.82 Wed Mar 3 12:46:44 2010
+++ packages/pldnotify.awk Fri Mar 26 12:05:34 2010
@@ -475,7 +475,7 @@
}
# upgrade check for pear package using PEAR CLI
-function pear_upgrade(name, ver) {
+function pear_upgrade(name, ver, pname, pearcmd, nver) {
pname = name;
sub(/^php-pear-/, "", pname);
@@ -495,9 +495,29 @@
return
}
+function vim_upgrade(name, ver, mver, nver, vimcmd) {
+ # %patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.2/7.2.%03g 1 %{patchlevel}
+ mver = substr(ver, 0, 4)
+ vimcmd = "wget -q -O - ftp://ftp.vim.org/pub/editors/vim/patches/"mver"/MD5SUMS|grep -vF .gz|tail -n1|awk '{print $2}'"
+ if (DEBUG) {
+ print "vimcmd: " vimcmd
+ }
+ vimcmd | getline nver
+ close(vimcmd)
+
+ if (compare_ver(ver, nver)) {
+ print name " [OLD] " ver " [NEW] " nver
+ } else {
+ print name " seems ok: " ver
+ }
+}
+
function process_data(name,ver,rel,src) {
if (name ~ /^php-pear-/) {
return pear_upgrade(name, ver);
+ }
+ if (name == "vim") {
+ return vim_upgrade(name, ver);
}
# this function checks if substitutions were valid, and if true:
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pldnotify.awk?r1=1.82&r2=1.83&f=u
More information about the pld-cvs-commit
mailing list