<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Hi,<br>
<br>
suggestion,<br>
<br>
id you are directly in the situation for change basics at moment<br>
and you be at moment because the whole versioning cr..eehh thing,<br>
why try it not directly to make more near back (to the roots in
direction RedHat) <br>
to an consistence if you want delete and rebuild the whole packets,<br>
<br>
why do you not just remove something like " %%mdkver
" and " %%mdvver " (so mdv/mdk)<br>
and make more easy for you .. and in the code ..<br>
if i look on the code .. it's maybe to be able for make the whole
more "less" code <br>
and come back to a conscience "standard" .. because with the times <br>
comes every something on the code and not away from it .. so it is
every <br>
more and more growed up .. and i guess, also with something what <br>
today nomore need.. and make it more complicate as need ..<br>
So, in this view, it's maybe possible for make more optimising and <br>
it is in able now to test by let compile over the whole more as 3000
rpm's<br>
for testing and more better optimising the abf-code or rpm-building
code<br>
for the future for have maby the possible to make more less code <br>
and easier maintaining .. or so ..<br>
if i think about and i see the code ..<br>
only as suggestion and think about... because now it is the
possibility there ..<br>
also for testing if works.. <br>
<br>
best regards<br>
Blacky<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 23.05.2016 um 11:12 schrieb Crispin
Boylan:<br>
</div>
<blockquote class=" cite"
id="mid_42c4e8a4_614c_a87b_9117_29945d530b57_beebgames_com"
cite="mid:42c4e8a4-614c-a87b-9117-29945d530b57@beebgames.com"
type="cite">
<br>
<br>
On 22/05/16 22:25, Tomasz Paweł Gajc wrote:
<br>
<blockquote class=" cite" id="Cite_8357692" type="cite">Dnia
niedziela, 22 maja 2016 09:08:41 Crispin Boylan pisze:
<br>
<blockquote class=" cite" id="Cite_1401967" type="cite">why
don't we just leave the distepoch tag as 2015.0, and stop us
using
<br>
/etc/release as the source of distepoch (just hard code) in
<br>
OpenMandiva.macros. Then /etc/release can be 3.0 in all
places.
<br>
<br>
</blockquote>
Cris this does not fully address the problem described by me.
<br>
<br>
<blockquote class=" cite" id="Cite_8493154" type="cite">we must
remove all omv3.0 rpms though.
<br>
</blockquote>
+1
<br>
<br>
<br>
</blockquote>
true but the disto-release patch below should sort out the mixture
in the files without causing any issues i think. I think we're
stuck with using 2015.0 as the distepoch for now, but that's no
big deal imho.
<br>
<br>
but what difference does the name of the github branch or the name
of the repo directory make? (apart from consistency)
<br>
<br>
for the mirrors the software looks in:
<br>
<br>
<a class="moz-txt-link-freetext" href="http://downloads.openmandriva.org/mirrors/openmandriva.3.0.x86_64.list">http://downloads.openmandriva.org/mirrors/openmandriva.3.0.x86_64.list</a>
(with below patch and if we add the correct file). which is ok
isnt it? i dont think anywhere actually constructs the url
manually does it?
<br>
<br>
finally for new releases we should add lx3 to:
<br>
<br>
<a class="moz-txt-link-freetext" href="http://downloads.openmandriva.org/releases/basic.x86_64.list">http://downloads.openmandriva.org/releases/basic.x86_64.list</a>
<br>
<br>
if we add it as the first entry then the software will see that as
the latest version, regardless of 3.0 < 2014.0 etc.
<br>
<br>
<br>
<br>
diff --git a/distro.py b/distro.py
<br>
index 5f3e56b..8e7ce3e 100644
<br>
--- a/distro.py
<br>
+++ b/distro.py
<br>
@@ -47,7 +47,7 @@ def
release_install(distribution,product,Vendor,codename,disturl,bugurl,disttag,<br>
<br>
print(rpm.expandMacro("""
<br>
cat > %{buildroot}%{_sysconfdir}/product.id."""+product+"""
<< EOF
<br>
-vendor="""+Vendor+""",distribution="""+distribution+""",type=%{product_type},version=%{distepoch},branch=%{product_branch},release=%{product_release},arch=%{product_arch},product="""+product+"""
<br>
+vendor="""+Vendor+""",distribution="""+distribution+""",type=%{product_type},version=%{version},branch=%{product_branch},release=%{product_release},arch=%{product_arch},product="""+product+"""
<br>
EOF
<br>
<br>
mkdir -p %{buildroot}%{_sys_macros_dir}
<br>
@@ -63,7 +63,7 @@ cat >
%{buildroot}%{_sys_macros_dir}/"""+Vendor+""".macros << EOF
<br>
%%mdvver %%mdkver
<br>
<br>
# productid variable
<br>
-%%product_id
vendor="""+vendor+",distribution="+distribution+",type=%product_type,version=%{distepoch},branch=%{product_branch},release=%{product_release},arch=%{product_arch},product="+product+"""<br>
+%%product_id
vendor="""+vendor+",distribution="+distribution+",type=%product_type,version=%{version},branch=%{product_branch},release=%{product_release},arch=%{product_arch},product="+product+"""<br>
<br>
%%product_vendor """+vendor+"""
<br>
%%product_distribution """+distribution+"""
<br>
@@ -80,6 +80,7 @@ cat >
%{buildroot}%{_sys_macros_dir}/"""+Vendor+""".macros << EOF
<br>
%%vendor """+Vendor+"""
<br>
%%_vendor """+vendor+"""
<br>
%%disttag """+disttag+"""
<br>
+%%distepoch %distepoch
<br>
EOF
<br>
<br>
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
<br>
@@ -94,7 +95,7 @@ cat >
%{buildroot}%{_sysconfdir}/"""+vendor+"""-release << EOF
<br>
"""+distribution+""" release %{version} """+codename+""" for
%{_target_cpu}
<br>
EOF
<br>
cat > %{buildroot}%{_sysconfdir}/version."""+vendor+"""
<< EOF
<br>
-%{distepoch} %{release} """+codename+"""
<br>
+%{version} %{release} """+codename+"""
<br>
EOF
<br>
<br>
# (tpg) follow standard specifications
<a class="moz-txt-link-freetext" href="http://www.freedesktop.org/software/systemd/man/os-release.html">http://www.freedesktop.org/software/systemd/man/os-release.html</a>
<br>
@@ -102,7 +103,7 @@ cat >
%{buildroot}%{_sysconfdir}/os-release."""+vendor+""" << EOF
<br>
NAME=\""""+distribution+"""\"
<br>
VERSION=\"%{version} """+codename+"""\"
<br>
ID=\""""+vendor+"""\"
<br>
-VERSION_ID=\"%{distepoch}\"
<br>
+VERSION_ID=\"%{version}\"
<br>
BUILD_ID=\"%(echo `date +"%Y%m%d.%H"`)\"
<br>
PRETTY_NAME=\""""+distribution+""" %{version} """+codename+"""\"
<br>
ANSI_COLOR=\""""+ansiColor+"""\"
<br>
<br>
<br>
<br>
<br>
_______________________________________________
<br>
OM-Cooker mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:OM-Cooker@ml.openmandriva.org">OM-Cooker@ml.openmandriva.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://ml.openmandriva.org/mailman/listinfo/om-cooker_ml.openmandriva.org">http://ml.openmandriva.org/mailman/listinfo/om-cooker_ml.openmandriva.org</a>
<br>
</blockquote>
<br>
<br>
</body>
</html>