Check-in [e3ddb480d5]
Overview
SHA1:e3ddb480d57871627093300d1b03e2fc19b43eb6
Date: 2015-03-16 15:36:45
User: rkeene
Comment:Improved "appfs-mkfs" latest detection
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2015-03-18
17:20
[152a83b125] Added basic support for removing the world/group permissions from files (user: rkeene, tags: trunk)
2015-03-16
15:36
[e3ddb480d5] Improved "appfs-mkfs" latest detection (user: rkeene, tags: trunk)
2015-02-24
19:20
[516e8e6dd7] Improved Slackware package building script (user: rkeene, tags: trunk)
Changes

Modified appfs-mkfs from [d5deebecbf] to [6085412bf1].

   216    216   		package = $1;
   217    217   		version = $2;
   218    218   		os = $3;
   219    219   		cpuArch = $4;
   220    220   		hash = $5;
   221    221   		isLatest = $6;
   222    222   
          223  +		latestKey = package "," os "," cpuArch;
   223    224   		key = package "," version "," os "," cpuArch;
   224    225   
   225    226   		if (isLatest == "1") {
   226         -			keys_latest[key] = hash;
          227  +			keys_latest[latestKey] = hash;
   227    228   		}
   228    229   		keys[key] = hash;
   229    230   	}
   230    231   
   231    232   	END{
   232    233   		for (key in keys) {
   233         -			if (keys_latest[key] != "") {
          234  +			hash = keys[key];
          235  +			split(key, keyParts, /,/);
          236  +			latestKey = keyParts[1] "," keyParts[3] "," keyParts[4];
          237  +
          238  +			if (keys_latest[latestKey] == hash) {
   234    239   				isLatest = "1";
   235         -				hash = keys_latest[key];
   236    240   			} else {
   237    241   				isLatest = "0";
   238         -				hash = keys[key];
   239    242   			}
   240    243   
   241    244   			print key "," hash "," isLatest;
   242    245   		}
   243    246   	}  
   244    247   ' | sort -u > "${packagelistfile}.new"
   245    248   cat "${packagelistfile}.new" > "${packagelistfile}"