summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-September/018485.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2012-September/018485.html')
-rw-r--r--zarb-ml/mageia-dev/2012-September/018485.html129
1 files changed, 129 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-September/018485.html b/zarb-ml/mageia-dev/2012-September/018485.html
new file mode 100644
index 000000000..6668e2de5
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-September/018485.html
@@ -0,0 +1,129 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] [soft-commits] [5686] For non-local media, iurt is suppressing the urpmi. cfg file while creating
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B5686%5D%20For%20non-local%20media%2C%0A%20iurt%20is%20suppressing%20the%20urpmi.%20cfg%20file%20while%20creating&In-Reply-To=%3CCAONrEtaXWqKfrrM9D0TLGxmjrqd4vWMpq0j5cTM_oxVzh9RNHg%40mail.gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="018498.html">
+ <LINK REL="Next" HREF="018499.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] [soft-commits] [5686] For non-local media, iurt is suppressing the urpmi. cfg file while creating</H1>
+ <B>Thierry Vignaud</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B5686%5D%20For%20non-local%20media%2C%0A%20iurt%20is%20suppressing%20the%20urpmi.%20cfg%20file%20while%20creating&In-Reply-To=%3CCAONrEtaXWqKfrrM9D0TLGxmjrqd4vWMpq0j5cTM_oxVzh9RNHg%40mail.gmail.com%3E"
+ TITLE="[Mageia-dev] [soft-commits] [5686] For non-local media, iurt is suppressing the urpmi. cfg file while creating">thierry.vignaud at gmail.com
+ </A><BR>
+ <I>Wed Sep 5 18:05:54 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="018498.html">[Mageia-dev] Directory conflict ?
+</A></li>
+ <LI>Next message: <A HREF="018499.html">[Mageia-dev] [soft-commits] [5686] For non-local media, iurt is suppressing the urpmi. cfg file while creating
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#18485">[ date ]</a>
+ <a href="thread.html#18485">[ thread ]</a>
+ <a href="subject.html#18485">[ subject ]</a>
+ <a href="author.html#18485">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On 5 September 2012 17:11, &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>&gt; wrote:
+&gt;<i> Revision 5686 Author rtp Date 2012-09-05 17:11:26 +0200 (Wed, 05 Sep 2012)
+</I>&gt;<i>
+</I>&gt;<i> Log Message
+</I>&gt;<i>
+</I>&gt;<i> For non-local media, iurt is suppressing the urpmi.cfg file while creating
+</I>&gt;<i> the chroot.
+</I>
+Wrong, it's always removed
+
+&gt;<i> This has the side effect of forcing people to use things like
+</I>&gt;<i> --chrooted-urpmi even if the iurt configuration is fine (since it managed
+</I>&gt;<i> to create the chroot). So, add media while creating the build chroot for
+</I>&gt;<i> non-local media, as long as --chrooted-urpmi has not been used.
+</I>
+Anyway this is insane IMHO: new logic is:
+- add media
+- install pkgs
+- remove media
+- readd media
+
+Either you should use --chrooted-urpmi (instead of re-implementing it)
+or you should just not remove the media in the first place when using
+use__urpmi_root,
+aka if using remote media
+
+&gt;<i> --- build_system/iurt/trunk/lib/Iurt/Chroot.pm 2012-09-05 15:07:40 UTC (rev
+</I>&gt;<i> 5685)
+</I>&gt;<i> +++ build_system/iurt/trunk/lib/Iurt/Chroot.pm 2012-09-05 15:11:26 UTC (rev
+</I>&gt;<i> 5686)
+</I>&gt;<i> @@ -300,11 +300,23 @@
+</I>&gt;<i>
+</I>&gt;<i> sub create_build_chroot {
+</I>&gt;<i> my ($chroot, $chroot_ref, $run, $config) = @_;
+</I>&gt;<i> + my $ret = 0;
+</I>&gt;<i> if ($run-&gt;{storage} eq 'btrfs') {
+</I>
+this is perl, no need to initialize to 0.
+
+&gt;<i> - return create_build_chroot_btrfs($chroot, $chroot_ref, $run,
+</I>&gt;<i> $config);
+</I>&gt;<i> + $ret = create_build_chroot_btrfs($chroot, $chroot_ref, $run,
+</I>&gt;<i> $config);
+</I>&gt;<i> } else {
+</I>&gt;<i> - return create_build_chroot_tar($chroot, $chroot_ref, $run,
+</I>&gt;<i> $config);
+</I>&gt;<i> + $ret = create_build_chroot_tar($chroot, $chroot_ref, $run,
+</I>&gt;<i> $config);
+</I>&gt;<i> }
+</I>&gt;<i> +
+</I>&gt;<i> + if ($ret) {
+</I>&gt;<i> + my $urpmi = $run-&gt;{urpmi};
+</I>&gt;<i> + if ($urpmi-&gt;{use__urpmi_root} &amp;&amp; !$run-&gt;{chrooted_urpmi}) {
+</I>&gt;<i> + if (!$urpmi-&gt;add_media__urpmi_root($chroot, $config-&gt;{base_media})) {
+</I>&gt;<i> + plog('ERROR', &quot;urpmi.addmedia --urpmi-root failed&quot;);
+</I>&gt;<i> + return;
+</I>&gt;<i> + }
+</I>&gt;<i> + }
+</I>&gt;<i> + }
+</I>&gt;<i> + return $ret;
+</I>&gt;<i> }
+</I>&gt;<i>
+</I>&gt;<i> sub create_build_chroot_tar {
+</I></PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="018498.html">[Mageia-dev] Directory conflict ?
+</A></li>
+ <LI>Next message: <A HREF="018499.html">[Mageia-dev] [soft-commits] [5686] For non-local media, iurt is suppressing the urpmi. cfg file while creating
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#18485">[ date ]</a>
+ <a href="thread.html#18485">[ thread ]</a>
+ <a href="subject.html#18485">[ subject ]</a>
+ <a href="author.html#18485">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>