X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;ds=sidebyside;f=yarrg%2FCommods.pm;h=f74571ddd39c6c5093902c51aae03969cb780532;hb=6a4d494e0e31f95bdd6dd54b814e8b2381ad95b2;hp=372fe16f51544081e9378d68563a91a5b38868df;hpb=c9225ff45ee5e69855cb24cfb648d903dbba54a7;p=ypp-sc-tools.main.git diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 372fe16..f74571d 100644 --- a/yarrg/Commods.pm +++ b/yarrg/Commods.pm @@ -51,7 +51,33 @@ BEGIN { @EXPORT_OK = qw(); } -our $masterinfoversion= 2; # version we understand +our $masterinfoversion= 2; # version we understand. +# +# To extend the source-info.txt format: +# +# * Commods.pm:parse_info1 +# add code to parse new version +# +# * source-info.txt +# add new information +# +# If new data should NOT be in master-info.txt too: +# +# * update-master-info:process_some_info +# check that code for converting source-info to master-info +# removes the extra info; add code to remove it if necessary +# +# * db-idempotent-populate +# if database schema is extended, add code to copy data +# +# If new data DOES need to be in master-info.txt too: +# +# * Commods.pm:$masterinfoversion +# increment +# +# * update-master-info:process_some_info +# add code to convert new version to old, by removing +# extra info conditionally depending on version our %oceans; # eg $oceans{'Midnight'}{'Ruby'}{'Eta Island'}= $sources; our %clients; # eg $clients{'ypp-sc-tools'}= [ qw(last-page) ];