~ximion/listaller/master

« back to all changes in this revision

Viewing changes to tools/lipkgen/ipkbuilder.vala

  • Committer: Matthias Klumpp
  • Date: 2014-09-07 02:32:09 UTC
  • Revision ID: git-v1:e6ba4d4678f83926e628759d784655913f65997a
Various fixes to smaller quirks when building IPK packages

* More checks for the input AppData
* Do not recursively find stuff with wildcards
* Allow files without timestamp in release

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
                // Get application-id from IPK source control XML file
495
495
                appInfo = ipkCDir.get_application ();
496
496
 
 
497
                if (Utils.str_is_empty (appInfo.metainfo.name)) {
 
498
                        error_message ("No application name specified in the AppData file.");
 
499
                        return false;
 
500
                }
 
501
                if (Utils.str_is_empty (appInfo.metainfo.id)) {
 
502
                        error_message ("No application identifier specified in the AppData file.");
 
503
                        return false;
 
504
                }
 
505
                if (Utils.str_is_empty (appInfo.version)) {
 
506
                        error_message ("The AppData file does not specify a release block with a version number.");
 
507
                        return false;
 
508
                }
 
509
 
 
510
 
497
511
                debug ("Building package for %s, version: %s (id: %s)", appInfo.metainfo.name, appInfo.version, appInfo.unique_name);
498
512
 
499
513
                // Build IPK control directory
517
531
                // Set license...
518
532
                ictrl.set_license_text (ipkCDir.get_application ().license.text);
519
533
 
520
 
                pkbuild_action ("Generating package payload");
 
534
                pkbuild_action ("Generating payload archive");
521
535
 
522
536
                IPK.FileList flist = new IPK.FileList (false);
523
537
                string archs = "";
540
554
                                else
541
555
                                        archs = "%s, %s".printf (archs, arch);
542
556
 
543
 
                        pkbuild_action ("Creating payload for architecture: %s".printf (arch));
 
557
                        pkbuild_action ("Creating payload container for architecture: %s".printf (arch));
544
558
                        // Add comment to IPK file-list
545
559
                        flist.comment = "IPK file-listing for architecture %s".printf (arch);
546
560