[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Ovirt-devel] [PATCH ovirt-node-image] add %{ovirt_local_repo} rpm macro



Alan Pevec wrote:
> so that autobuild can override it
> default is file://%{ovirt_cache_dir}/ovirt
>
> Signed-off-by: Alan Pevec <apevec redhat com>
> ---
>  ovirt-node-image.spec |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/ovirt-node-image.spec b/ovirt-node-image.spec
> index ebe674d..5885fd9 100644
> --- a/ovirt-node-image.spec
> +++ b/ovirt-node-image.spec
> @@ -1,4 +1,5 @@
>  %{!?ovirt_cache_dir: %define ovirt_cache_dir /var/tmp/ovirt-cache}
> +%{!?ovirt_local_repo: %define ovirt_local_repo file://%{ovirt_cache_dir}/ovirt}
>  %{!?ovirt_url: %define ovirt_url http://ovirt.org/repos/ovirt}
>  %define fedora_mirror http://mirrors.fedoraproject.org/mirrorlist
>  
> @@ -50,7 +51,7 @@ fi
>  
>  cat >> repos.ks << EOF
>  repo --name=ovirt-org --baseurl=%{ovirt_url}/%{fedora}/%{_arch}
> -repo --name=ovirt-cache --baseurl=file://%{ovirt_cache_dir}/ovirt
> +repo --name=ovirt-local --baseurl=%{ovirt_local_repo}
>  EOF
>  
>  mkdir -p %{ovirt_cache_dir}/node-image-tmp
>   
ACK. Works for me.
    -Mo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]