summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000952.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000952.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-November/000952.html112
1 files changed, 112 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000952.html b/zarb-ml/mageia-sysadm/2010-November/000952.html
new file mode 100644
index 000000000..b57fd2c19
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-November/000952.html
@@ -0,0 +1,112 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [148] use urpmq --list to find available basesystem package versions,
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B148%5D%20use%20urpmq%20--list%20to%20find%20available%20basesystem%0A%09package%20versions%2C%20&In-Reply-To=%3C20101125231518.4D36C3FB18%40valstar.mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000941.html">
+ <LINK REL="Next" HREF="000953.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [148] use urpmq --list to find available basesystem package versions, </H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B148%5D%20use%20urpmq%20--list%20to%20find%20available%20basesystem%0A%09package%20versions%2C%20&In-Reply-To=%3C20101125231518.4D36C3FB18%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [148] use urpmq --list to find available basesystem package versions, ">root at mageia.org
+ </A><BR>
+ <I>Fri Nov 26 00:15:18 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000941.html">[Mageia-sysadm] [147] do not add rpm extension when building packages list
+</A></li>
+ <LI>Next message: <A HREF="000953.html">[Mageia-sysadm] [149] add a message when the chroot is already up-to-date
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#952">[ date ]</a>
+ <a href="thread.html#952">[ thread ]</a>
+ <a href="subject.html#952">[ subject ]</a>
+ <a href="author.html#952">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 148
+Author: blino
+Date: 2010-11-26 00:15:18 +0100 (Fri, 26 Nov 2010)
+Log Message:
+-----------
+use urpmq --list to find available basesystem package versions,
+instead of checking a path, since it likely requies to have an additional NFS available
+
+Modified Paths:
+--------------
+ build_system/iurt/trunk/lib/Iurt/Chroot.pm
+
+Modified: build_system/iurt/trunk/lib/Iurt/Chroot.pm
+===================================================================
+--- build_system/iurt/trunk/lib/Iurt/Chroot.pm 2010-11-25 18:07:24 UTC (rev 147)
++++ build_system/iurt/trunk/lib/Iurt/Chroot.pm 2010-11-25 23:15:18 UTC (rev 148)
+@@ -439,14 +439,15 @@
+ plog('DEBUG', &quot;decompressing /var/log/qa from $chroot_tar in $tmp_chroot&quot;);
+ sudo($run, $config, '--untar', $chroot_tar, $tmp_chroot, &quot;./var/log/qa&quot;);
+
+- my $qa;
+- if (open $qa, &quot;$tmp_chroot/var/log/qa&quot;) {
+- my $ok;
+- my $f;
+- while (!$ok &amp;&amp; ($f = &lt;$qa&gt;)) {
+- chomp $f;
+- if (!-f &quot;$config-&gt;{basesystem_media_root}/media/$config-&gt;{basesystem_media}/$f&quot;) {
+- plog('DEBUG', &quot;$f has changed&quot;);
++ my $tmp_urpmi = mktemp(&quot;$chroot.tmp.XXXXXX&quot;);
++ my @installed_pkgs = chomp_(cat_(&quot;$tmp_chroot/var/log/qa&quot;));
++ my @available_pkgs = chomp_(`urpmq --urpmi-root $tmp_urpmi --use-distrib $run-&gt;{urpmi}{distrib_url} --list -f 2&gt;/dev/null`);
++ my @removed_pkgs = difference2(\@installed_pkgs, \@available_pkgs);
++ rm_rf($tmp_urpmi);
++
++ if (@installed_pkgs) {
++ if (@removed_pkgs) {
++ plog('DEBUG', &quot;changed packages: @removed_pkgs&quot;);
+ plog('NOTIFY', &quot;Rebuilding chroot tarball&quot;);
+
+ $rebuild = 1;
+@@ -457,8 +458,6 @@
+ $clean-&gt;();
+ return;
+ }
+- $ok = 1;
+- }
+ }
+ } else {
+ plog('DEBUG', &quot;can't open $tmp_chroot/var/log/qa&quot;);
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101126/f7892e47/attachment.html&gt;
+</PRE>
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000941.html">[Mageia-sysadm] [147] do not add rpm extension when building packages list
+</A></li>
+ <LI>Next message: <A HREF="000953.html">[Mageia-sysadm] [149] add a message when the chroot is already up-to-date
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#952">[ date ]</a>
+ <a href="thread.html#952">[ thread ]</a>
+ <a href="subject.html#952">[ subject ]</a>
+ <a href="author.html#952">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
+mailing list</a><br>
+</body></html>