Package: pocketpc-sdk
Version: 1.0.0-2
Submitter: Rouven Schürch <[EMAIL PROTECTED]>
Tags: patch

Hello Shaun

we have been using your script 'pocketpc-cab' for creating an
installable cab for an application of ours. Recently, after having
bought a newer PDA with WIN CE 5 installed, the CABs failed installing
... I spent a few hours tracking down why these CABs no longer installed
(byte by byte analysis of the Manifest file of the CAB with a working
CAB built for WIN CE 5) just to find out that the pocketpc-cab script
packages the files in the 'wrong' order into the archive.
I cite the 'wince_cab_format.html' in the pocketpc-cab package:

"The order of these files within the cab file is important. The first
file in the cabinet should be the ".000" file. It should then be
followed by all other files in descending numerical order of their
extensions."

;)

The patch included with this email should fix this minor inconvenience
and make it possible to create CABs for the latest WIN CE Version
(adjusted the Version info as well). If you find this information
useful, please do whatever you think fits best.

Ah yes, and thanks for your script, we're glad it exists and use it very
often!


Best regards

Rouven Schürch

--
Rouven Schürch               e-mail: [EMAIL PROTECTED]
Tegonal GmbH                 web:    http://tegonal.com
Brunnmattstrasse 20A         phone:  +41 76 377 64 88
CH-3007 Bern, Switzerland


--- pocketpc-cab-1.0.0-3/pocketpc-cab   2006-04-05 20:35:14.000000000 +0200
+++ pocketpc-cab-1.0.0.orig/pocketpc-cab        2004-09-18
01:03:43.000000000 +0200
@@ -9,7 +9,7 @@

 # Constants.
 my $architecture = 2577; # StrongARM
-my @version_requirements = (3, 0, 5, 99, 0, 2147483647); # 3.0.0 to 5.99
+my @version_requirements = (3, 0, 10, 0, 0, 0); # 3.0.0 to 10.0.0
 my $verbose = 0;

 # Strings.
@@ -284,7 +284,7 @@
                printf "$file: $munged_file\n" if $verbose;
                `cp "$sourcedir$file" "$munged_file"`;
                exit $? >> 8 if $? > 0;
-               $munged_files = $munged_files . "\"$munged_file\" ";
+               $munged_files = "\"$munged_file\" " . $munged_files;
        }

        # Create the cab.

Reply via email to