Hello, this is a small fix for picax, which wasn't checking if the base_path was already set before using default. Greetings.
On Mon, Dec 15, 2008 at 07:01:45PM -0200, Marco T?lio Gontijo e Silva wrote: > Hello, > > this is a small fix for picax, which wasn't checking if the base_path > was already set before using default. > > Greetings. > -- > marcot > http://marcot.iaaeee.org/ >In fact, this patch is needed so we can save the repository in a different directory and set mediagen to use it, instead of $cwd/repo. Regards, Cascardo.> --- config.py.old 2008-12-15 18:15:34.532695079 -0200 > +++ config.py 2008-12-15 14:18:23.425765846 -0200 > @@ -475,8 +475,9 @@ > new_repo_list.append(repo_item) > this_config["repository_list"] = new_repo_list > > - this_config["base_path"] = arglist[0] > - this_config["base_path"] = os.path.abspath(this_config["base_path"]) > + if not this_config.has_key("base_path") > + this_config["base_path"] = arglist[0] > + this_config["base_path"] = os.path.abspath(this_config["base_path"]) > if not this_config.has_key("dest_path"): > this_config["dest_path"] = this_config["base_path"] > > _______________________________________________ > Pdk-devel mailing list > Pdk-devel at 64studio.com > http://lists.64studio.com/mailman/listinfo/pd...
Hi Marco, |--==> On Mon, 15 Dec 2008 19:01:45 -0200, Marco T?lio Gontijo e Silva said: MTGeS> Hello, MTGeS> this is a small fix for picax, which wasn't checking if the base_path MTGeS> was already set before using default. Thanks, patch committed. Ciao! Free
On Mon, Dec 15, 2008 at 07:01:45PM -0200, Marco T?lio Gontijo e Silva wrote:
> Hello,
>
> this is a small fix for picax, which wasn't checking if the base_path
> was already set before using default.
>
> Greetings.
> --
> marcot
> http://marcot.iaaeee.org/
>
> --- config.py.old 2008-12-15 18:15:34.532695079 -0200
> +++ config.py 2008-12-15 14:18:23.425765846 -0200
> @@ -475,8 +475,9 @@
> new_repo_list.append(repo_item)
> this_config["repository_list"] = new_repo_list
>
> - this_config["base_path"] = arglist[0]
> - this_config["base_path"] = os.path.abspath(this_config["base_path"])
> + if not this_config.has_key("base_path")
> + this_config["base_path"] = arglist[0]
> + this_config["base_path"] = os.path.abspath(this_config["base_path"])
> if not this_config.has_key("dest_path"):
> this_config["dest_path"] = this_config["base_path"]
>Please, note that this patch has a syntax error: a missing colon at the
end of the if line.
if ...
instead of
if ... :
Sorry for that.
Best regards,
Cascardo.
|--==> On Wed, 17 Dec 2008 17:54:28 -0200, Thadeu Lima de Souza Cascardo said:
TLdSC> On Mon, Dec 15, 2008 at 07:01:45PM -0200, Marco T?lio Gontijo e Silva wrote:
>>Hello,
>>
>>this is a small fix for picax, which wasn't checking if the base_path
>>was already set before using default.
>>
>>Greetings.
>>--
>>marcot
>>http://marcot.iaaeee.org/
>>
>>--- config.py.old 2008-12-15 18:15:34.532695079 -0200
>>+++ config.py 2008-12-15 14:18:23.425765846 -0200
>>@@ -475,8 +475,9 @@
>>new_repo_list.append(repo_item)
>>this_config["repository_list"] = new_repo_list
>>
>>- this_config["base_path"] = arglist[0]
>>- this_config["base_path"] = os.path.abspath(this_config["base_path"])
>>+ if not this_config.has_key("base_path")
>>+ this_config["base_path"] = arglist[0]
>>+ this_config["base_path"] = os.path.abspath(this_config["base_path"])
>>if not this_config.has_key("dest_path"):
>>this_config["dest_path"] = this_config["base_path"]
>>TLdSC> Please, note that this patch has a syntax error: a missing colon at the
TLdSC> end of the if line.
TLdSC> if ...
TLdSC> instead of
TLdSC> if ... :
TLdSC> Sorry for that.
Yes, thanks, that's already fixed in git.
Ciao!
Free