]> git.pld-linux.org Git - packages/poldek.git/commitdiff
Always install snapshot repo configs
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 20 Aug 2012 10:51:32 +0000 (12:51 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 20 Aug 2012 10:51:32 +0000 (12:51 +0200)
poldek-snap.conf
poldek.spec

index cfb321b044e48420772caeed4ea25d78ab5cc35a..80e5398487733d4384d4644198f1abc645bf0781 100644 (file)
@@ -22,19 +22,27 @@ _prefix = %{_pld_main_prefix}
 type   = pndir
 name   = th-%{_snap}
 path   = %{_prefix}/PLD/%{_arch}/RPMS/
+@@SNAP@@auto   = no
+@@SNAP@@autoup = no
 
 [source]
 type   = pndir
 name   = th-%{_snap}
 path   = %{_prefix}/PLD/noarch/RPMS/
+@@SNAP@@auto   = no
+@@SNAP@@autoup = no
 
 # PLD Linux 3.0 (Th) %SNAP%: updates
 [source]
 type   = pndir
 name   = th-%{_snap}-updates
 path   = %{_pld_main_prefix}/updates/%{_arch}/RPMS/
+@@SNAP@@auto   = no
+@@SNAP@@autoup = no
 
 [source]
 type   = pndir
 name   = th-%{_snap}-updates
 path   = %{_pld_main_prefix}/updates/noarch/RPMS/
+@@SNAP@@auto   = no
+@@SNAP@@autoup = no
index 9cc5ecc0436a2ea9ddf5c5791f2750dbc32eee63..3734102773db1921ba13866454339762b74b4838 100644 (file)
@@ -5,9 +5,8 @@
 %bcond_without python  # don't build python bindings
 %bcond_with    snap    # install configs for official Th snapshot
 
-%if %{with snap}
+# corrent snapshot name
 %define                SNAP    2012
-%endif
 
 # required versions (forced to avoid SEGV with mixed db used by rpm and poldek)
 %define        ver_db  4.7.25
@@ -314,7 +313,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/repos.d,/var/cache/%{name}}
 %{__sed} -e 's|%%ARCH%%|%{_ftp_arch}|g' < %{pld_archive_conf} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-archive.conf
 %endif
 
-%if %{with snap}
+# Always install snapshot configs
 %{__sed} -e 's|%%ARCH%%|%{_ftp_arch}|g' \
        -e 's|%%SNAP%%|%{SNAP}|g' < %{SOURCE100} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
 %{__sed} -e 's|%%ARCH%%|%{_ftp_arch}|g' \
@@ -323,8 +322,12 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/repos.d,/var/cache/%{name}}
        %{__sed} -e 's|%%ARCH%%|%{_ftp_alt_arch}|g' \
                -e 's|%%SNAP%%|%{SNAP}|g' < %{SOURCE101} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-multilib.conf
 %endif
+
+%if %{with snap}
 %{__sed} -i -e 's|@@SNAP@@||g' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld.conf
+%{__sed} -i '/@@SNAP@@.*/d' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
 %else
+%{__sed} -i -e 's|@@SNAP@@||g' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}.conf
 %{__sed} -i '/@@SNAP@@.*/d' $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/repos.d/pld.conf
 %endif
 
This page took 0.038948 seconds and 4 git commands to generate.