Alan Pevec
2008-Sep-09 11:42 UTC
[Ovirt-devel] [PATCH ovirt-appliance] add %{ovirt_local_repo} rpm macro
so that autobuild can override it default is file://%{ovirt_cache_dir}/ovirt Signed-off-by: Alan Pevec <apevec at redhat.com> --- ovirt-appliance.spec | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ovirt-appliance.spec b/ovirt-appliance.spec index bbc0e77..feec956 100644 --- a/ovirt-appliance.spec +++ b/ovirt-appliance.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} %if %{fedora_url} %define fedora_tree_url %{fedora_url}/releases/%{fedora}/Fedora/%{_arch}/os @@ -47,7 +48,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}/appliance-tmp/tree -- 1.5.5.1
Mohammed Morsi
2008-Sep-09 13:32 UTC
[Ovirt-devel] [PATCH ovirt-appliance] 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 at redhat.com> > --- > ovirt-appliance.spec | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/ovirt-appliance.spec b/ovirt-appliance.spec > index bbc0e77..feec956 100644 > --- a/ovirt-appliance.spec > +++ b/ovirt-appliance.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} > %if %{fedora_url} > %define fedora_tree_url %{fedora_url}/releases/%{fedora}/Fedora/%{_arch}/os > @@ -47,7 +48,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}/appliance-tmp/tree >ACK. Works for me. -Mo