Re: Distribution file and http URL as package location
Re: Distribution file and http URL as package location
- Subject: Re: Distribution file and http URL as package location
- From: Natalia Antonova <email@hidden>
- Date: Fri, 26 Oct 2012 12:00:23 +0400
Thanks for you response, Stephane.
Perhaps my problem is a wrong approach I chose to create the meta-package.
First I build a number of flat packages using command line version of PackageMaker.
Then I put everything I'd like to see in meta-package in a separate folder, say "mpkg":
Distribution
Plugins
Resources
Scripts
And package it manually into a meta-package using "pkgutil --flatten mpkg/ my.mpkg"
Then I copy all pkgs to Packages folder and place my.mpkg near by -
-my.mpkg
-Packages /
1.pkg
2.pkg
If Distribution file has pkg-ref pointing to local files: file:./Packages/1.pkg - it works fine.
But I think it would be very useful to have a way to combine two these options into a single one. So that to make Distribution to decide dynamically where to take pkgs from.
I am now thinking about trying to double all choices - create 1 set to point to local pkgs, another to remote and initialize "selected" attribute with the result of script checking presence of pkg in local Packages folder. I will give it a try and then report back.
But there's another issue I am looking workaround for. The redirection in pkg-ref URLs seems not to work. Has anyone faced with this and found a solution? I need this since at build time I don't know the location of pkgs on the server.
Thanks a lot!
2012/10/25 Stephane Sudre
<email@hidden>
On Thu, Oct 25, 2012 at 8:29 AM, Natalia Antonova
<email@hidden> wrote:
> Hello,
>
> Please help me with the below questions.
>
> I have a flat meta-package and Distribution file inside.
> I am wondering if it's possible to configure pkg-locations dynamically in
> the Distribution-file.
> For example, check if the pkg can be found locally in the Packages folder,
> if it is - take the local file; otherwise - take pkg from http-server.
> Is there any way to accomplish this?
It's somehow a chicken and egg question. Since you would need to build
a specific flat distribution for each case, there's no real reason to
check for the presence of a local file as you already know it when you
build the flat distribution.
And modifying a built flat distribution is like rebuilding one.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden