summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/002293.html
blob: ddf45f123b70de0cb35c01ad777de212d8357f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [859] add script made by pascal to check packages that have missing deps ( temporary, quick and dirty )
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B859%5D%20add%20script%20made%20by%20pascal%20to%20check%20packages%0A%20that%20have%20missing%20deps%20%28%20temporary%2C%20quick%20and%20dirty%20%29&In-Reply-To=%3C20110120155548.A46E742B6D%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="002292.html">
   <LINK REL="Next"  HREF="002294.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [859] add script made by pascal to check packages that have missing deps ( temporary, quick and dirty )</H1>
    <B>root at mageia.org</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B859%5D%20add%20script%20made%20by%20pascal%20to%20check%20packages%0A%20that%20have%20missing%20deps%20%28%20temporary%2C%20quick%20and%20dirty%20%29&In-Reply-To=%3C20110120155548.A46E742B6D%40valstar.mageia.org%3E"
       TITLE="[Mageia-sysadm] [859] add script made by pascal to check packages that have missing deps ( temporary, quick and dirty )">root at mageia.org
       </A><BR>
    <I>Thu Jan 20 16:55:48 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="002292.html">[Mageia-sysadm] [329] update URL about ssh configuration (reported	by erwan)
</A></li>
        <LI>Next message: <A HREF="002294.html">[Mageia-sysadm] [860] deploy pascal script
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2293">[ date ]</a>
              <a href="thread.html#2293">[ thread ]</a>
              <a href="subject.html#2293">[ subject ]</a>
              <a href="author.html#2293">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Revision: 859
Author:   misc
Date:     2011-01-20 16:55:48 +0100 (Thu, 20 Jan 2011)
Log Message:
-----------
add script made by pascal to check packages that have missing deps ( temporary, quick and dirty )

Modified Paths:
--------------
    puppet/modules/buildsystem/manifests/init.pp

Added Paths:
-----------
    puppet/modules/buildsystem/files/
    puppet/modules/buildsystem/files/missing-deps.sh

Added: puppet/modules/buildsystem/files/missing-deps.sh
===================================================================
--- puppet/modules/buildsystem/files/missing-deps.sh	                        (rev 0)
+++ puppet/modules/buildsystem/files/missing-deps.sh	2011-01-20 15:55:48 UTC (rev 859)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Copyright 2011, Pascal Terjan &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">pterjan at gmail.com</A>&gt;
+#
+# This program is free software. It comes without any warranty, to
+# the extent permitted by applicable law. You can redistribute it
+# and/or modify it under the terms of the Do What The Fuck You Want
+# To Public License, Version 2, as published by Sam Hocevar. See
+# <A HREF="http://sam.zoy.org/wtfpl/COPYING">http://sam.zoy.org/wtfpl/COPYING</A> for more details.
+#
+# Creates missing-deps.$arch.txt for each arch, listing broken
+# dependencies inside the associated media.
+
+repo=&quot;/distrib/bootstrap/distrib/cauldron&quot;
+
+missing() {
+	arch=$1
+	d=&quot;${repo}/${arch}&quot;
+	urpmf --requires --use-distrib $d : | cut -d: -f2- | sed 's/\[.*//' | sort -u | xargs urpmq -p --use-distrib $d 2&gt;&amp;1 &gt;/dev/null | sed -n 's/No package named //p'
+}
+
+for arch in i586 x86_64
+do
+	missing $arch &gt; missing-deps.$arch.txt
+done


Property changes on: puppet/modules/buildsystem/files/missing-deps.sh
___________________________________________________________________
Added: svn:executable
   + *

Modified: puppet/modules/buildsystem/manifests/init.pp
===================================================================
--- puppet/modules/buildsystem/manifests/init.pp	2011-01-19 16:08:41 UTC (rev 858)
+++ puppet/modules/buildsystem/manifests/init.pp	2011-01-20 15:55:48 UTC (rev 859)
@@ -262,4 +262,20 @@
             content =&gt; template(&quot;buildsystem/mgacreatehome&quot;)
 	}
     }
+
+    class check_missing_deps {
+        file { &quot;/usr/local/bin/missing-deps.sh&quot;:
+            ensure =&gt; present,
+            owner =&gt; root,
+            group =&gt; root,
+            mode =&gt; 700,
+            content =&gt; &quot;<A HREF="puppet:///modules/buildsystem/missing-deps.sh">puppet:///modules/buildsystem/missing-deps.sh</A>&quot;,
+        }
+    
+        # FIXME hardcoded path
+        cron { &quot;check missing deps&quot;:
+            command =&gt; &quot;cd /var/www/bs/data &amp;&amp; /usr/local/bin/missing-deps.sh&quot;,
+            minute =&gt; &quot;*/15&quot;,
+        }
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;/pipermail/mageia-sysadm/attachments/20110120/f51bdb63/attachment-0001.html&gt;
</PRE>









<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="002292.html">[Mageia-sysadm] [329] update URL about ssh configuration (reported	by erwan)
</A></li>
	<LI>Next message: <A HREF="002294.html">[Mageia-sysadm] [860] deploy pascal script
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2293">[ date ]</a>
              <a href="thread.html#2293">[ thread ]</a>
              <a href="subject.html#2293">[ subject ]</a>
              <a href="author.html#2293">[ 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>