summaryrefslogtreecommitdiffstats
path: root/urpm.pm
blob: 0abc9a277aa81d5315cbf662b6f4d87c1a2c0cba (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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
package urpm;

# $Id$

use strict;
use MDK::Common;
use urpm::msg;
use urpm::download;
use urpm::util;
use urpm::sys;
use urpm::cfg;

our $VERSION = '4.5';
our @ISA = qw(URPM);

use URPM;
use URPM::Resolve;
use POSIX;

BEGIN {
    # this won't work in 5.10 when encoding::warnings will be lexical
    if ($ENV{DEBUG_URPMI}) {
	require encoding::warnings;
	encoding::warnings->import();
    }
}

#- create a new urpm object.
sub new {
    my ($class) = @_;
    my $self;
    $self = bless {
	# from URPM
	depslist   => [],
	provides   => {},

	config     => "/etc/urpmi/urpmi.cfg",
	skiplist   => "/etc/urpmi/skip.list",
	instlist   => "/etc/urpmi/inst.list",
	statedir   => "/var/lib/urpmi",
	cachedir   => "/var/cache/urpmi",
	media      => undef,
	options    => {},
	proxy      => get_proxy(),

	#- sync: first argument is options hashref, others are urls to fetch.
	sync       => sub { $self->sync_webfetch(@_) },
	fatal      => sub { printf STDERR "%s\n", $_[1]; exit($_[0]) },
	error      => sub { printf STDERR "%s\n", $_[0] },
	log        => sub { printf STDERR "%s\n", $_[0] },
	ui_msg     => sub { $self->{log}($_[0]); $self->{ui} and $self->{ui}{msg}->($_[1]) },
    }, $class;
    $self->set_nofatal(1);
    $self;
}

#- syncing algorithms.
#- currently wget and curl methods are implemented; trying to find the best
#- (and one which will work :-)
sub sync_webfetch {
    my $urpm = shift @_;
    my $options = shift @_;
    my %files;
    #- currently ftp and http protocols are managed by curl or wget,
    #- ssh and rsync protocols are managed by rsync *AND* ssh.
    foreach (@_) {
	/^([^:_]*)[^:]*:/ or die N("unknown protocol defined for %s", $_);
	push @{$files{$1}}, $_;
    }
    if ($files{removable} || $files{file}) {
	eval {
	    sync_file($options, @{$files{removable} || []}, @{$files{file} || []});
	};
	$urpm->{fatal}(10, $@) if $@;
	delete @files{qw(removable file)};
    }
    if ($files{ftp} || $files{http} || $files{https}) {
	my @webfetch = qw(curl wget);
	my @available_webfetch = grep { -x "/usr/bin/$_" } @webfetch;
	my $preferred;
	#- use user default downloader if provided and available
	my $option_downloader = $urpm->{options}{downloader}; #- cmd-line switch
	if (!$option_downloader && $options->{media}) { #- per-media config
	    (my $m) = grep { $_->{name} eq $options->{media} } @{$urpm->{media}};
	    ref $m && $m->{downloader} and $option_downloader = $m->{downloader};
	}
	#- global config
	!$option_downloader && exists $urpm->{global_config}{''}{downloader}
	    and $option_downloader = $urpm->{global_config}{''}{downloader};
	if ($option_downloader) {
	    $preferred = find { $_ eq $option_downloader } @available_webfetch;
	}
	#- else first downloader of @webfetch is the default one
	$preferred ||= $available_webfetch[0];
	if ($preferred eq 'curl') {
	    sync_curl($options, @{$files{ftp} || []}, @{$files{http} || []}, @{$files{https} || []});
	} elsif ($preferred eq 'wget') {
	    sync_wget($options, @{$files{ftp} || []}, @{$files{http} || []}, @{$files{https} || []});
	} else {
	    die N("no webfetch found, supported webfetch are: %s\n", join(", ", @webfetch));
	}
	delete @files{qw(ftp http https)};
    }
    if ($files{rsync}) {
	sync_rsync($options, @{$files{rsync} || []});
	delete $files{rsync};
    }
    if ($files{ssh}) {
	my @ssh_files;
	foreach (@{$files{ssh} || []}) {
	    m|^ssh://([^/]*)(.*)| and push @ssh_files, "$1:$2";
	}
	sync_ssh($options, @ssh_files);
	delete $files{ssh};
    }
    %files and die N("unable to handle protocol: %s", join ', ', keys %files);
}

#- Loads /etc/urpmi/urpmi.cfg and performs basic checks.
#- Does not handle old format: <name> <url> [with <path_hdlist>]
#- options :
#-    - nocheck_access : don't check presence of hdlist and other files
sub read_config {
    my ($urpm, %options) = @_;
    return if $urpm->{media}; #- media already loaded
    $urpm->{media} = [];
    my $config = urpm::cfg::load_config($urpm->{config})
	or $urpm->{fatal}(6, $urpm::cfg::err);

    #- global options
    if ($config->{''}) {
	for my $opt (qw(
	    allow-force
	    allow-nodeps
	    auto
	    compress
	    downloader
	    excludedocs
	    excludepath
	    fuzzy
	    keep
	    key-ids
	    limit-rate
	    post-clean
	    pre-clean
	    priority-upgrade
	    resume
	    split-length
	    split-level
	    verify-rpm
	)) {
	    if (defined $config->{''}{$opt} && !exists $urpm->{options}{$opt}) {
		$urpm->{options}{$opt} = $config->{''}{$opt};
	    }
	}
    }
    #- per-media options
    for my $m (grep { $_ ne '' } keys %$config) {
	my $medium = { name => $m, clear_url => $config->{$m}{url} };
	for my $opt (qw(
	    downloader
	    hdlist
	    ignore
	    key-ids
	    list
	    md5sum
	    noreconfigure
	    priority
	    removable
	    synthesis
	    update
	    verify-rpm
	    virtual
	    with_hdlist
	)) {
	    defined $config->{$m}{$opt} and $medium->{$opt} = $config->{$m}{$opt};
	}
	$urpm->probe_medium($medium, %options) and push @{$urpm->{media}}, $medium;
    }

    #- keep in mind when an hdlist/list file is already used
    my %filelists;
    foreach (@{$urpm->{media}}) {
	for my $filetype (qw(hdlist list)) {
	    if ($_->{$filetype}) {
		exists($filelists{$filetype}{$_->{$filetype}})
		    and $_->{ignore} = 1,
		    $urpm->{error}(
			($filetype eq 'hdlist'
			    ? N("medium \"%s\" trying to use an already used hdlist, medium ignored")
			    : N("medium \"%s\" trying to use an already used list, medium ignored"),
			$_->{name})
		    );
		$filelists{$filetype}{$_->{$filetype}} = undef;
	    }
	}
    }

    #- check the presence of hdlist and list files if necessary.
    unless ($options{nocheck_access}) {
	foreach (@{$urpm->{media}}) {
	    $_->{ignore} and next;
	    -r "$urpm->{statedir}/$_->{hdlist}" || -r "$urpm->{statedir}/synthesis.$_->{hdlist}" && $_->{synthesis}
		or $_->{ignore} = 1,
		$urpm->{error}(N("unable to access hdlist file of \"%s\", medium ignored", $_->{name}));
	    $_->{list} && -r "$urpm->{statedir}/$_->{list}" || defined $_->{url}
		or $_->{ignore} = 1,
		$urpm->{error}(N("unable to access list file of \"%s\", medium ignored", $_->{name}));
	}
    }

    #- read MD5 sums (usually not in urpmi.cfg but in a separate file)
    open my $md5sum, "$urpm->{statedir}/MD5SUM";
    while (<$md5sum>) {
	my ($md5sum, $file) = /(\S*)\s+(.*)/;
	foreach (@{$urpm->{media}}) {
	    ($_->{synthesis} ? "synthesis." : "").$_->{hdlist} eq $file
		and $_->{md5sum} = $md5sum, last;
	}
    }
    close $md5sum;

    #- remember global options for write_config
    $urpm->{global_config} = $config->{''};
}

#- probe medium to be used, take old medium into account too.
sub probe_medium {
    my ($urpm, $medium, %options) = @_;
    local $_;

    my $existing_medium;
    foreach (@{$urpm->{media}}) {
	$_->{name} eq $medium->{name} and $existing_medium = $_, last;
    }
    $existing_medium and $urpm->{error}(N("trying to bypass existing medium \"%s\", avoiding", $medium->{name})), return;
    
    $medium->{url} ||= $medium->{clear_url};

    if ($medium->{virtual}) {
	#- a virtual medium need to have an url available without using a list file.
	if ($medium->{hdlist} || $medium->{list}) {
	    $medium->{ignore} = 1;
	    $urpm->{error}(N("virtual medium \"%s\" should not have defined hdlist or list file, medium ignored",
			     $medium->{name}));
	}
	unless ($medium->{url}) {
	    $medium->{ignore} = 1;
	    $urpm->{error}(N("virtual medium \"%s\" should have a clear url, medium ignored",
			     $medium->{name}));
	}
    } else {
	unless ($medium->{ignore} || $medium->{hdlist}) {
	    $medium->{hdlist} = "hdlist.$medium->{name}.cz";
	    -e "$urpm->{statedir}/$medium->{hdlist}" or $medium->{hdlist} = "hdlist.$medium->{name}.cz2";
	    -e "$urpm->{statedir}/$medium->{hdlist}" or
	      $medium->{ignore} = 1,
		$urpm->{error}(N("unable to find hdlist file for \"%s\", medium ignored", $medium->{name}));
	}
	unless ($medium->{ignore} || $medium->{list}) {
	    unless (defined $medium->{url}) {
		$medium->{list} = "list.$medium->{name}";
		unless (-e "$urpm->{statedir}/$medium->{list}") {
		    $medium->{ignore} = 1,
		      $urpm->{error}(N("unable to find list file for \"%s\", medium ignored", $medium->{name}));
		}
	    }
	}

	#- there is a little more to do at this point as url is not known, inspect directly list file for it.
	unless ($medium->{url}) {
	    my %probe;
	    if (-r "$urpm->{statedir}/$medium->{list}") {
		open my $listfile, "$urpm->{statedir}/$medium->{list}";
		while (<$listfile>) {
		    #- /./ is end of url marker in list file (typically generated by a
		    #- find . -name "*.rpm" > list
		    #- for exportable list file.
		    m|^(.*)/\./| and $probe{$1} = undef;
		    m|^(.*)/[^/]*$| and $probe{$1} = undef;
		}
		close $listfile;
	    }
	    foreach (sort { length($a) <=> length($b) } keys %probe) {
		if ($medium->{url}) {
		    $medium->{url} eq substr($_, 0, length($medium->{url})) or
		      $medium->{ignore} || $urpm->{error}(N("incoherent list file for \"%s\", medium ignored", $medium->{name})),
			$medium->{ignore} = 1, last;
		} else {
		    $medium->{url} = $_;
		}
	    }
	    unless ($options{nocheck_access}) {
		$medium->{url} or
		  $medium->{ignore} || $urpm->{error}(N("unable to inspect list file for \"%s\", medium ignored",
							$medium->{name})),
							  $medium->{ignore} = 1;
	    }
	}
    }

    #- probe removable device.
    $urpm->probe_removable_device($medium);

    #- clear URLs for trailing /es.
    $medium->{url} and $medium->{url} =~ s|(.*?)/*$|$1|;
    $medium->{clear_url} and $medium->{clear_url} =~ s|(.*?)/*$|$1|;

    $medium;
}

#- probe device associated with a removable device.
sub probe_removable_device {
    my ($urpm, $medium) = @_;

    if ($medium->{url} && $medium->{url} =~ /^removable_?([^_:]*)(?:_[^:]*)?:/) {
	$medium->{removable} ||= $1 && "/dev/$1";
    } else {
	delete $medium->{removable};
    }

    #- try to find device to open/close for removable medium.
    if (exists($medium->{removable})) {
	if (my ($dir) = $medium->{url} =~ m!(?:file|removable)[^:]*:/(.*)!) {
	    my %infos;
	    my @mntpoints = urpm::sys::find_mntpoints($dir, \%infos);
	    if (@mntpoints > 1) { #- return value is suitable for an hash.
		$urpm->{log}(N("too many mount points for removable medium \"%s\"", $medium->{name}));
		$urpm->{log}(N("taking removable device as \"%s\"", join ',', map { $infos{$_}{device} } @mntpoints));
	    }
	    if (@mntpoints) {
		if ($medium->{removable} && $medium->{removable} ne $infos{$mntpoints[-1]}{device}) {
		    $urpm->{log}(N("using different removable device [%s] for \"%s\"",
				   $infos{$mntpoints[-1]}{device}, $medium->{name}));
		}
		$medium->{removable} = $infos{$mntpoints[-1]}{device};
	    } else {
		$urpm->{error}(N("unable to retrieve pathname for removable medium \"%s\"", $medium->{name}));
	    }
	} else {
	    $urpm->{error}(N("unable to retrieve pathname for removable medium \"%s\"", $medium->{name}));
	}
    }
}

#- Writes the urpmi.cfg file.
sub write_config {
    my ($urpm) = @_;

    #- avoid trashing exiting configuration if it wasn't loaded
    $urpm->{media} or return;

    my $config = {
	#- global config options found in the config file, without the ones
	#- set from the command-line
	'' => $urpm->{global_config},
    };
    foreach my $medium (@{$urpm->{media}}) {
	my $medium_name = $medium->{name};
	$config->{$medium_name}{url} = $medium->{clear_url};
	foreach (qw(hdlist with_hdlist list removable key-ids priority priority-upgrade update ignore synthesis virtual)) {
	    defined $medium->{$_} and $config->{$medium_name}{$_} = $medium->{$_};
	}
    }
    urpm::cfg::dump_config($urpm->{config}, $config)
	or $urpm->{fatal}(6, N("unable to write config file [%s]", $urpm->{config}));

    #- write MD5SUM file
    open my $md5sum, '>', "$urpm->{statedir}/MD5SUM"
	or $urpm->{error}(N("unable to write file [%s]", "$urpm->{statedir}/MD5SUM")), return 0;
    foreach my $medium (@{$urpm->{media}}) {
	$medium->{md5sum}
	    and print $md5sum "$medium->{md5sum}  ".($medium->{synthesis} && "synthesis.").$medium->{hdlist}."\n";
    }
    close $md5sum;

    $urpm->{log}(N("write config file [%s]", $urpm->{config}));

    #- everything should be synced now.
    delete $urpm->{modified};
}

#- read urpmi.cfg file as well as synthesis file needed.
sub configure {
    my ($urpm, %options) = @_;

    $urpm->clean;

    $options{parallel} && $options{usedistrib} and die N("Can't use parallel mode with use-distrib mode");

    if ($options{parallel}) {
	my ($parallel_options, $parallel_handler);
	#- handle parallel configuration, examine all module available that
	#- will handle the parallel mode (configuration is /etc/urpmi/parallel.cfg).
	local $_;
	open my $parallel, "/etc/urpmi/parallel.cfg";
	while (<$parallel>) {
	    chomp; s/#.*$//; s/^\s*//; s/\s*$//;
	    /\s*([^:]*):(.*)/ or $urpm->{error}(N("unable to parse \"%s\" in file [%s]", $_, "/etc/urpmi/parallel.cfg")), next;
	    $1 eq $options{parallel} and $parallel_options = ($parallel_options && "\n") . $2;
	}
	close $parallel;
	#- if a configuration options has been found, use it else fatal error.
	if ($parallel_options) {
	    foreach my $dir (grep { -d $_ } map { "$_/urpm" } @INC) {
		opendir my $dh, $dir or die $!;
		while ($_ = readdir $dh) {
		    -f "$dir/$_" or next;
		    $urpm->{log}->(N("examining parallel handler in file [%s]", "$dir/$_"));
		    eval { require "$dir/$_"; $parallel_handler = $urpm->handle_parallel_options($parallel_options) };
		    $parallel_handler and last;
		}
		closedir $dh;
		$parallel_handler and last;
	    }
	}
	if ($parallel_handler) {
	    if ($parallel_handler->{nodes}) {
		$urpm->{log}->(N("found parallel handler for nodes: %s", join(', ', keys %{$parallel_handler->{nodes}})));
	    }
	    if (!$options{media} && $parallel_handler->{media}) {
		$options{media} = $parallel_handler->{media};
		$urpm->{log}->(N("using associated media for parallel mode: %s", $options{media}));
	    }
	    $urpm->{parallel_handler} = $parallel_handler;
	} else {
	    $urpm->{fatal}(1, N("unable to use parallel option \"%s\"", $options{parallel}));
	}
    } else {
	#- parallel is exclusive against root options.
	$urpm->{root} = $options{root};
    }

    if ($options{synthesis}) {
	if ($options{synthesis} ne 'none') {
	    #- synthesis take precedence over media, update options.
	    $options{media} || $options{excludemedia} || $options{sortmedia} || $options{update} || $options{parallel} and
	      $urpm->{fatal}(1, N("--synthesis cannot be used with --media, --excludemedia, --sortmedia, --update or --parallel"));
	    $urpm->parse_synthesis($options{synthesis});
	    #- synthesis disables the split of transaction (too risky and not useful).
	    $urpm->{options}{'split-length'} = 0;
	}
    } else {
        if ($options{usedistrib}) {
            $urpm->{media} = [];
            $urpm->add_distrib_media("Virtual", $options{usedistrib}, %options, 'virtual' => 1);
        } else {
	    $urpm->read_config(%options);
        }
	if ($options{media}) {
	    delete $_->{modified} foreach @{$urpm->{media} || []};
	    $urpm->select_media(split ',', $options{media});
	    foreach (grep { !$_->{modified} } @{$urpm->{media} || []}) {
		#- this is only a local ignore that will not be saved.
		$_->{ignore} = 1;
	    }
	}
	if ($options{excludemedia}) {
	    delete $_->{modified} foreach @{$urpm->{media} || []};
	    $urpm->select_media(split ',', $options{excludemedia});
	    foreach (grep { $_->{modified} } @{$urpm->{media} || []}) {
		#- this is only a local ignore that will not be saved.
		$_->{ignore} = 1;
	    }
	}
	if ($options{sortmedia}) {
	    delete $_->{modified} foreach @{$urpm->{media} || []};
	    my @oldmedia = @{$urpm->{media} || []};
	    my @newmedia;
	    foreach (split ',', $options{sortmedia}) {
		$urpm->select_media($_);
		push @newmedia, grep { $_->{modified} } @oldmedia;
		@oldmedia = grep { !$_->{modified} } @oldmedia;
	    }
	    #- anything not selected should be added as is after the selected one.
	    $urpm->{media} = [ @newmedia, @oldmedia ];
	    #- clean remaining modified flag.
	    delete $_->{modified} foreach @{$urpm->{media} || []};
	}
	unless ($options{nodepslist}) {
	    my $second_pass;
	    do {
		foreach (grep { !$_->{ignore} && (!$options{update} || $_->{update}) } @{$urpm->{media} || []}) {
		    delete @$_{qw(start end)};
		    if ($_->{virtual}) {
			my $path = $_->{url} =~ m|^file:/*(/[^/].*[^/])/*$| && $1;
			if ($path) {
			    if ($_->{synthesis}) {
				$urpm->{log}(N("examining synthesis file [%s]", "$path/$_->{with_hdlist}"));
				($_->{start}, $_->{end}) = $urpm->parse_synthesis(
				    "$path/$_->{with_hdlist}", callback => $options{callback});
			    } else {
				$urpm->{log}(N("examining hdlist file [%s]", "$path/$_->{with_hdlist}"));
				($_->{start}, $_->{end}) = $urpm->parse_hdlist(
				    "$path/$_->{with_hdlist}",
				    packing => 1,
				    callback => $options{callback},
				);
				#- we need a second pass now.
				defined $second_pass or $second_pass = 1;
			    }
			} else {
			    $urpm->{error}(N("virtual medium \"%s\" is not local, medium ignored", $_->{name}));
			    $_->{ignore} = 1;
			}
		    } else {
			if ($options{hdlist} && -e "$urpm->{statedir}/$_->{hdlist}" && -s _ > 32) {
			    $urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$_->{hdlist}"));
			    ($_->{start}, $_->{end}) = $urpm->parse_hdlist(
				"$urpm->{statedir}/$_->{hdlist}",
				packing => 1,
				callback => $options{callback},
			    );
			} else {
			    $urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$_->{hdlist}"));
			    ($_->{start}, $_->{end}) = $urpm->parse_synthesis(
				"$urpm->{statedir}/synthesis.$_->{hdlist}",
				callback => $options{callback},
			    );
			    unless (defined $_->{start} && defined $_->{end}) {
				$urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$_->{hdlist}"));
				($_->{start}, $_->{end}) = $urpm->parse_hdlist("$urpm->{statedir}/$_->{hdlist}",
				    packing => 1,
				    callback => $options{callback},
				);
			    }
			}
		    }
		    unless ($_->{ignore}) {
			unless (defined $_->{start} && defined $_->{end}) {
			    $urpm->{error}(N("problem reading hdlist or synthesis file of medium \"%s\"", $_->{name}));
			    $_->{ignore} = 1;
			}
		    }
		}
	    } while ($second_pass && do { require URPM::Build;
					  $urpm->{log}(N("performing second pass to compute dependencies\n"));
					  $urpm->unresolved_provides_clean;
					  $second_pass-- });
	}
    }
    #- determine package to withdraw (from skip.list file) only if something should be withdrawn.
    unless ($options{noskipping}) {
	my %uniq;
	$urpm->compute_flags(
	    get_packages_list($urpm->{skiplist}, $options{skip}),
	    skip => 1,
	    callback => sub {
		my ($urpm, $pkg) = @_;
		$pkg->is_arch_compat && ! exists $uniq{$pkg->fullname} or return;
		$uniq{$pkg->fullname} = undef;
		$urpm->{log}(N("skipping package %s", scalar($pkg->fullname)));
	    },
	);
    }
    unless ($options{noinstalling}) {
	my %uniq;
	$urpm->compute_flags(
	    get_packages_list($urpm->{instlist}),
	    disable_obsolete => 1,
	    callback => sub {
		my ($urpm, $pkg) = @_;
		$pkg->is_arch_compat && ! exists $uniq{$pkg->fullname} or return;
		$uniq{$pkg->fullname} = undef;
		$urpm->{log}(N("would install instead of upgrade package %s", scalar($pkg->fullname)));
	    },
	);
    }
    if ($options{bug}) {
	#- and a dump of rpmdb itself as synthesis file.
	my $db = URPM::DB::open($options{root});
	my $sig_handler = sub { undef $db; exit 3 };
	local $SIG{INT} = $sig_handler;
	local $SIG{QUIT} = $sig_handler;

	$db or $urpm->{fatal}(9, N("unable to open rpmdb"));
	open my $rpmdb, "| " . ($ENV{LD_LOADER} || '') . " gzip -9 >'$options{bug}/rpmdb.cz'";
	$db->traverse(sub {
			  my ($p) = @_;
			  #- this is not right but may be enough.
			  my $files = join '@', grep { exists($urpm->{provides}{$_}) } $p->files;
			  $p->pack_header;
			  $p->build_info(fileno $rpmdb, $files);
		      });
	close $rpmdb;
    }
}

#- add a new medium, sync the config file accordingly.
sub add_medium {
    my ($urpm, $name, $url, $with_hdlist, %options) = @_;

    #- make sure configuration has been read.
    $urpm->{media} or $urpm->read_config;

    #- if a medium with that name has already been found
    #- we have to exit now
    my ($medium);
    if (defined $options{index_name}) {
	my $i = $options{index_name};
	do {
	    ++$i;
	    undef $medium;
	    foreach (@{$urpm->{media}}) {
		$_->{name} eq $name.$i and $medium = $_;
	    }
	} while $medium;
	$name .= $i;
    } else {
	foreach (@{$urpm->{media}}) {
	    $_->{name} eq $name and $medium = $_;
	}
    }
    $medium and $urpm->{fatal}(5, N("medium \"%s\" already exists", $medium->{name}));

    #- clear URLs for trailing /es.
    $url =~ s{/*$}{};

    #- creating the medium info.
    if ($options{virtual}) {
	$url =~ m|^file:/*(/[^/].*)/| or $urpm->{fatal}(1, N("virtual medium needs to be local"));

	$medium = { name      => $name,
		    url       => $url,
		    update    => $options{update},
		    virtual   => 1,
		    modified  => 1,
		  };
    } else {
	$medium = { name     => $name,
		    url      => $url,
		    hdlist   => "hdlist.$name.cz",
		    list     => "list.$name",
		    update   => $options{update},
		    modified => 1,
		  };

	#- check to see if the medium is using file protocol or removable medium.
	$url =~ m!^(removable[^:]*|file):/(.*)! and $urpm->probe_removable_device($medium);
    }

    #- local media have priority, other are added at the end.
    if ($url =~ m!^file:/!) {
	$medium->{priority} = 0.5;
    } else {
	$medium->{priority} = 1 + @{$urpm->{media}};
    }

    #- check whether a password is visible, if not set clear_url.
    $url =~ m|([^:]*://[^/:\@]*:)[^/:\@]*(\@.*)| or $medium->{clear_url} = $url;

    $with_hdlist and $medium->{with_hdlist} = $with_hdlist;

    #- create an entry in media list.
    push @{$urpm->{media}}, $medium;

    #- keep in mind the database has been modified and base files need to be updated.
    #- this will be done automatically by transfering modified flag from medium to global.
    $urpm->{log}(N("added medium %s", $name));
}

#- add distribution media, according to url given.
sub add_distrib_media {
    my ($urpm, $name, $url, %options) = @_;
    my ($hdlists_file);
    my $distrib_root = "media/media_info";

    #- make sure configuration has been read.
    # (Olivier Thauvin): Is this a workaround ?
    $urpm->{media} or $urpm->read_config;

    #- try to copy/retrieve the hdlists file.
    if (my ($dir) = $url =~ m!^(?:removable[^:]*|file):/(.*)!) {
	#- be compatible with pre-10.1 layout
	-d "$dir/$distrib_root" or $distrib_root = "Mandrake/base";

	$hdlists_file = reduce_pathname("$dir/$distrib_root/hdlists");

	$urpm->try_mounting($hdlists_file) or $urpm->{error}(N("unable to access first installation medium")), return;

	if (-e $hdlists_file) {
	    unlink "$urpm->{cachedir}/partial/hdlists";
	    $urpm->{log}(N("copying hdlists file..."));
	    system("cp", "-p", "-R", $hdlists_file, "$urpm->{cachedir}/partial/hdlists")
		? do { $urpm->{error}(N("...copying failed")); return }
		: $urpm->{log}(N("...copying done"));
	} else {
	    $urpm->{error}(N("unable to access first installation medium (no hdlists file found)")), return;
	}
    } else {
	#- try to get the description if it has been found.
	unlink "$urpm->{cachedir}/partial/hdlists";
	eval {
	    $urpm->{log}(N("retrieving hdlists file..."));
	    $urpm->{sync}(
		{
		    dir => "$urpm->{cachedir}/partial",
		    quiet => 1,
		    limit_rate => $options{limit_rate},
		    compress => $options{compress},
		    proxy => get_proxy(),
		},
		reduce_pathname("$url/$distrib_root/hdlists"),
	    );
	    $urpm->{log}(N("...retrieving done"));
	};
	$@ and $urpm->{error}(N("...retrieving failed: %s", $@));
	if (-e "$urpm->{cachedir}/partial/hdlists") {
	    $hdlists_file = "$urpm->{cachedir}/partial/hdlists";
	} else {
	    $urpm->{error}(N("unable to access first installation medium (no hdlists file found)")), return;
	}
    }

    #- cosmetic update of name if it contains blank char.
    $name =~ /\s/ and $name .= ' ';

    #- at this point, we have found an hdlists file, so parse it
    #- and create all necessary media according to it.
    if (open my $hdlistsfh, $hdlists_file) {
	my $medium = 1;
	foreach (<$hdlistsfh>) {
	    chomp;
	    s/\s*#.*$//;
	    /^\s*$/ and next;
	    m/^\s*(?:noauto:)?(hdlist\S*\.cz2?)\s+(\S+)\s*(.*)$/ or $urpm->{error}(N("invalid hdlist description \"%s\" in hdlists file"), $_);
	    my ($hdlist, $rpmsdir, $descr) = ($1, $2, $3);

	    $urpm->add_medium($name ? "$descr ($name$medium)" : $descr,
			      "$url/$rpmsdir",
			      offset_pathname($url, $rpmsdir) . "/$distrib_root/$hdlist",
			      %options);

	    ++$medium;
	}
	close $hdlistsfh;
    } else {
	$urpm->{error}(N("unable to access first installation medium (no hdlists file found)")), return;
    }
}

sub select_media {
    my $urpm = shift;
    my $options = {};
    if (ref $_[0]) { $options = shift }
    my %media; @media{@_} = undef;

    foreach (@{$urpm->{media}}) {
	if (exists($media{$_->{name}})) {
	    $media{$_->{name}} = 1; #- keep it mind this one has been selected.

	    #- select medium by setting modified flags, do not check ignore.
	    $_->{modified} = 1;
	}
    }

    #- check if some arguments don't correspond to the medium name.
    #- in such case, try to find the unique medium (or list candidate
    #- media found).
    foreach (keys %media) {
	unless ($media{$_}) {
	    my $q = quotemeta;
	    my (@found, @foundi);
	    my $regex  = $options->{strict_match} ? qr/\b$q\b/  : qr/$q/;
	    my $regexi = $options->{strict_match} ? qr/\b$q\b/i : qr/$q/i;
	    foreach my $medium (@{$urpm->{media}}) {
		$medium->{name} =~ $regex  and push @found, $medium;
		$medium->{name} =~ $regexi and push @foundi, $medium;
	    }
	    if (@found == 1) {
		$found[0]{modified} = 1;
	    } elsif (@foundi == 1) {
		$foundi[0]{modified} = 1;
	    } elsif (@found == 0 && @foundi == 0) {
		$urpm->{error}(N("trying to select nonexistent medium \"%s\"", $_));
	    } else { #- several elements in found and/or foundi lists.
		$urpm->{log}(N("selecting multiple media: %s", join(", ", map { N("\"%s\"", $_->{name}) } (@found ? @found : @foundi))));
		#- changed behaviour to select all occurences by default.
		foreach (@found ? @found : @foundi) {
		    $_->{modified} = 1;
		}
	    }
	}
    }
}

sub remove_selected_media {
    my ($urpm) = @_;
    my @result;

    foreach (@{$urpm->{media}}) {
	if ($_->{modified}) {
	    $urpm->{log}(N("removing medium \"%s\"", $_->{name}));

	    #- mark to re-write configuration.
	    $urpm->{modified} = 1;

	    #- remove file associated with this medium.
	    foreach ($_->{hdlist}, $_->{list}, "synthesis.$_->{hdlist}", "descriptions.$_->{name}", "names.$_->{name}",
		     "$_->{name}.cache") {
		$_ and unlink "$urpm->{statedir}/$_";
	    }

	    #- remove proxy settings for this media
	    urpm::download::remove_proxy_media($_->{name});
	} else {
	    push @result, $_; #- not removed so keep it
	}
    }

    #- restore newer media list.
    $urpm->{media} = \@result;
}

#- return list of synthesis or hdlist reference to probe.
sub _probe_with_try_list {
    my ($suffix, $probe_with) = @_;
    my @probe = (
	"synthesis.hdlist$suffix.cz",
	"../base/synthesis.hdlist$suffix.cz",
	"../synthesis.hdlist$suffix.cz",
    );
    length($suffix) and unshift @probe, "synthesis.hdlist.cz";
    length($suffix) or push @probe, (
	"../base/synthesis.hdlist1.cz",
	"../base/synthesis.hdlist2.cz",
	"../synthesis.hdlist1.cz",
	"../synthesis.hdlist2.cz",
	"synthesis.hdlist1.cz",
	"synthesis.hdlist2.cz",
    );
    my @probe_hdlist = (
	"hdlist$suffix.cz",
	"../base/hdlist$suffix.cz",
	"../hdlist$suffix.cz",
    );
    length($suffix) and push @probe_hdlist, "hdlist.cz";
    length($suffix) or push @probe_hdlist, (
	"../base/hdlist1.cz",
	"../base/hdlist2.cz",
	"../hdlist1.cz",
	"../hdlist2.cz",
	"hdlist1.cz",
	"hdlist2.cz",
    );
    if ($probe_with =~ /synthesis/) {
	push @probe, @probe_hdlist;
    } else {
	unshift @probe, @probe_hdlist;
    }
    @probe;
}

#- read a reconfiguration file for urpmi, and reconfigure media accordingly
#- $rfile is the reconfiguration file (local), $name is the media name
sub reconfig_urpmi {
    my ($urpm, $rfile, $name) = @_;
    my @replacements;
    my @reconfigurable = qw(url with_hdlist clear_url);
    my $reconfigured = 0;
    open my $fh, $rfile or return undef;
    $urpm->{log}(N("reconfiguring urpmi for media \"%s\"", $name));
    while (<$fh>) {
	chomp;
	s/^\s*//; s/#.*$//; s/\s*$//;
	$_ or next;
	my ($p, $r, $f) = split /\s+/, $_, 3;
	$f ||= 1;
	push @replacements, [ quotemeta $p, $r, $f ];
    }
  MEDIA:
    for my $medium (grep { $_->{name} eq $name } @{$urpm->{media}}) {
        my %orig = map { $_ => $medium->{$_} } @reconfigurable;
      URLS:
	for my $k (@reconfigurable) {
	    for my $r (@replacements) {
		if ($medium->{$k} =~ s/$r->[0]/$r->[1]/) {
		    $reconfigured = 1;
		    #- Flags stolen from mod_rewrite: L(ast), N(ext)
		    last if $r->[2] =~ /L/;
		    redo URLS if $r->[2] =~ /N/;
		}
	    }
	    #- check that the new url exists before committing changes (local mirrors)
	    if ($medium->{$k} =~ m#^file:/*(/[^/].*[^/])/*$# && !-e $1) {
		$medium->{$k} = $orig{$k} for @reconfigurable;
		$reconfigured = 0;
		$urpm->{log}(N("...reconfiguration failed"));
		last MEDIA;
	    }
	}
    }
    close $fh;
    if ($reconfigured) {
	$urpm->{log}(N("reconfiguration done"));
	$urpm->write_config;
    }
    $reconfigured;
}

#- Update the urpmi database w.r.t. the current configuration.
#- Takes care of modifications, and tries some tricks to bypass
#- the recomputation of base files.
#- Recognized options :
#-   all         -> all medias are rebuilded.
#-   force       -> try to force rebuilding base files (1) or hdlist from rpm files (2).
#-   probe_with  -> probe synthesis or hdlist (or none).
#-   ratio       -> use compression ratio (with gzip, default is 4)
#-   noclean     -> keep old files in the header cache directory.
#-   nopubkey    -> don't use rpm pubkeys
#-   nolock      -> don't lock the urpmi database
#-   forcekey    -> force retrieval of pubkey
sub update_media {
    my ($urpm, %options) = @_;
    my $clean_cache = !$options{noclean};
    my $second_pass;

    $urpm->{media} or return; # verify that configuration has been read

    #- get gpg-pubkey signature.
    if (!$options{nopubkey}) {
	$urpm->exlock_rpm_db;
	$urpm->{keys} or $urpm->parse_pubkeys(root => $urpm->{root});
    }
    #- lock database if allowed.
    $options{nolock} or $urpm->exlock_urpmi_db;

    #- examine each medium to see if one of them needs to be updated.
    #- if this is the case and if not forced, try to use a pre-calculated
    #- hdlist file, else build it from rpm files.
    $urpm->clean;

    my %media_redone;
  MEDIA:
    foreach my $medium (@{$urpm->{media}}) {
	$medium->{ignore} and next;

	$options{forcekey} and delete $medium->{'key-ids'};
	
	#- we should create the associated synthesis file if it does not already exist...
	-e "$urpm->{statedir}/synthesis.$medium->{hdlist}" && -s _ > 32
	    or $medium->{modified_synthesis} = 1;

	#- if we're rebuilding all media, mark them as modified (except removable ones)
	$medium->{modified} ||= $options{all} && $medium->{url} !~ m!^removable://!;

	unless ($medium->{modified}) {
	    #- the medium is not modified, but to compute dependencies,
	    #- we still need to read it and all synthesis will be written if
	    #- an unresolved provides is found.
	    #- to speed up the process, we only read the synthesis at the beginning.
	    delete @$medium{qw(start end)};
	    if ($medium->{virtual}) {
		my ($path) = $medium->{url} =~ m|^file:/*(/[^/].*[^/])/*$|;
		if ($path) {
		    my $with_hdlist_file = "$path/$medium->{with_hdlist}";
		    if ($medium->{synthesis}) {
			$urpm->{log}(N("examining synthesis file [%s]", $with_hdlist_file));
			($medium->{start}, $medium->{end}) = $urpm->parse_synthesis($with_hdlist_file);
		    } else {
			$urpm->{log}(N("examining hdlist file [%s]", $with_hdlist_file));
			($medium->{start}, $medium->{end}) = $urpm->parse_hdlist($with_hdlist_file, packing => 1);
		    }
		} else {
		    $urpm->{error}(N("virtual medium \"%s\" is not local, medium ignored", $medium->{name}));
		    $_->{ignore} = 1;
		}
	    } else {
		$urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$medium->{hdlist}"));
		($medium->{start}, $medium->{end}) = $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
		unless (defined $medium->{start} && defined $medium->{end}) {
		    $urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
		    ($medium->{start}, $medium->{end}) = $urpm->parse_hdlist("$urpm->{statedir}/$medium->{hdlist}", packing => 1);
		}
	    }
	    unless ($medium->{ignore}) {
		unless (defined $medium->{start} && defined $medium->{end}) {
		    #- this is almost a fatal error, ignore it by default?
		    $urpm->{error}(N("problem reading hdlist or synthesis file of medium \"%s\"", $medium->{name}));
		    $medium->{ignore} = 1;
		}
	    }
	    next;
	}

	#- list of rpm files for this medium, only available for local medium where
	#- the source hdlist is not used (use force).
	my ($prefix, $dir, $error, $retrieved_md5sum, @files);

	#- always delete a remaining list file or pubkey file in cache.
	foreach (qw(list pubkey)) {
	    unlink "$urpm->{cachedir}/partial/$_";
	}

	#- check to see if the medium is using file protocol or removable medium.
	if (($prefix, $dir) = $medium->{url} =~ m!^(removable[^:]*|file):/(.*)!) {
	    #- check for a reconfig.urpmi file (if not already reconfigured)
	    if (!$media_redone{$medium->{name}}) {
		my $reconfig_urpmi = reduce_pathname("$dir/reconfig.urpmi");
		if (-s $reconfig_urpmi && $urpm->reconfig_urpmi($reconfig_urpmi, $medium->{name})) {
		    $media_redone{$medium->{name}} = 1;
		    redo MEDIA;
		}
	    }

	    #- try to figure a possible hdlist_path (or parent directory of searched directory.
	    #- this is used to probe possible hdlist file.
	    my $with_hdlist_dir = reduce_pathname($dir . ($medium->{with_hdlist} ? "/$medium->{with_hdlist}" : "/.."));

	    #- the directory given does not exist and may be accessible
	    #- by mounting some other. try to figure out these directory and
	    #- mount everything necessary.
	    $urpm->try_mounting($options{force} < 2 && ($options{probe_with} || $medium->{with_hdlist}) ?
				$with_hdlist_dir : $dir) or
				  $urpm->{error}(N("unable to access medium \"%s\",
this could happen if you mounted manually the directory when creating the medium.", $medium->{name})), next;

	    #- try to probe for possible with_hdlist parameter, unless
	    #- it is already defined (and valid).
	    if ($options{probe_with} && (!$medium->{with_hdlist} || ! -e "$dir/$medium->{with_hdlist}")) {
		my ($suffix) = $dir =~ m|RPMS([^/]*)/*$|;

		foreach (_probe_with_try_list($suffix, $options{probe_with})) {
		    if (-e "$dir/$_" && -s _ > 32) {
			$medium->{with_hdlist} = $_;
			last;
		    }
		}
		#- redo...
		$with_hdlist_dir = reduce_pathname($dir . ($medium->{with_hdlist} ? "/$medium->{with_hdlist}" : "/.."));
	    }

	    if ($medium->{virtual}) {
		#- syncing a virtual medium is very simple, just try to read the file in order to
		#- determine its type, once a with_hdlist has been found (but is mandatory).
		if ($medium->{with_hdlist} && -e $with_hdlist_dir) {
		    delete @$medium{qw(start end)};
		    if ($medium->{synthesis}) {
			$urpm->{log}(N("examining synthesis file [%s]", $with_hdlist_dir));
			($medium->{start}, $medium->{end}) = $urpm->parse_synthesis($with_hdlist_dir);
			delete $medium->{modified};
			$medium->{synthesis} = 1;
			$urpm->{modified} = 1;
			unless (defined $medium->{start} && defined $medium->{end}) {
			    $urpm->{log}(N("examining hdlist file [%s]", $with_hdlist_dir));
			    ($medium->{start}, $medium->{end}) = $urpm->parse_hdlist($with_hdlist_dir, packing => 1);
			    delete @$medium{qw(modified synthesis)};
			    $urpm->{modified} = 1;
			}
		    } else {
			$urpm->{log}(N("examining hdlist file [%s]", $with_hdlist_dir));
			($medium->{start}, $medium->{end}) = $urpm->parse_hdlist($with_hdlist_dir, packing => 1);
			delete @$medium{qw(modified synthesis)};
			$urpm->{modified} = 1;
			unless (defined $medium->{start} && defined $medium->{end}) {
			    $urpm->{log}(N("examining synthesis file [%s]", $with_hdlist_dir));
			    ($medium->{start}, $medium->{end}) = $urpm->parse_synthesis($with_hdlist_dir);
			    delete $medium->{modified};
			    $medium->{synthesis} = 1;
			    $urpm->{modified} = 1;
			}
		    }
		    unless (defined $medium->{start} && defined $medium->{end}) {
			$urpm->{error}(N("problem reading hdlist or synthesis file of medium \"%s\"", $medium->{name}));
			$medium->{ignore} = 1;
		    }
		} else {
		    $urpm->{error}(N("virtual medium \"%s\" should have valid source hdlist or synthesis, medium ignored",
				     $medium->{name}));
		    $medium->{ignore} = 1;
		}
	    }
	    #- try to get the description if it has been found.
	    unlink "$urpm->{statedir}/descriptions.$medium->{name}";
	    if (-e "$dir/../descriptions") {
		$urpm->{log}(N("copying description file of \"%s\"...", $medium->{name}));
		system("cp", "-p", "-R", "$dir/../descriptions",
			"$urpm->{statedir}/descriptions.$medium->{name}")
		    ? do { $urpm->{error}(N("...copying failed")); $medium->{ignore} = 1; }
		    : $urpm->{log}(N("...copying done"));
	    }

	    #- examine if a distant MD5SUM file is available.
	    #- this will only be done if $with_hdlist is not empty in order to use
	    #- an existing hdlist or synthesis file, and to check if download was good.
	    #- if no MD5SUM are available, do it as before...
	    #- we can assume at this point a basename is existing, but it needs
	    #- to be checked for being valid, nothing can be deduced if no MD5SUM
	    #- file are present.
	    my $basename = basename($with_hdlist_dir);

	    unless ($medium->{virtual}) {
		if ($medium->{with_hdlist}) {
		    if (!$options{nomd5sum} && -s reduce_pathname("$with_hdlist_dir/../MD5SUM") > 32) {
			if ($options{force}) {
			    #- force downloading the file again, else why a force option has been defined ?
			    delete $medium->{md5sum};
			} else {
			    unless ($medium->{md5sum}) {
				$urpm->{log}(N("computing md5sum of existing source hdlist (or synthesis)"));
				if ($medium->{synthesis}) {
				    -e "$urpm->{statedir}/synthesis.$medium->{hdlist}" and
				      $medium->{md5sum} = (split ' ', `md5sum '$urpm->{statedir}/synthesis.$medium->{hdlist}'`)[0];
				} else {
				    -e "$urpm->{statedir}/$medium->{hdlist}" and
				      $medium->{md5sum} = (split ' ', `md5sum '$urpm->{statedir}/$medium->{hdlist}'`)[0];
				}
			    }
			}
			if ($medium->{md5sum}) {
			    $urpm->{log}(N("examining MD5SUM file"));
			    local $_;
			    open my $fh, reduce_pathname("$with_hdlist_dir/../MD5SUM");
			    while (<$fh>) {
				my ($md5sum, $file) = m|(\S+)\s+(?:\./)?(\S+)| or next;
				#- keep md5sum got here to check download was ok ! so even if md5sum is not defined, we need
				#- to compute it, keep it in mind ;)
				$file eq $basename and $retrieved_md5sum = $md5sum;
			    }
			    close $fh;
			    #- If an existing hdlist or synthesis file has the same md5sum, we assume
			    #- the files are the same.
			    #- If the local md5sum is the same as the distant md5sum, this means
			    #- that there is no need to download the hdlist or synthesis file again.
			    foreach (@{$urpm->{media}}) {
				if ($_->{md5sum} && $_->{md5sum} eq $retrieved_md5sum) {
				    unlink "$urpm->{cachedir}/partial/$basename";
				    #- the medium is now considered not modified.
				    $medium->{modified} = 0;
				    #- hdlist or synthesis file must be linked with the other same one.
				    #- a link is better for reducing used size of /var/lib/urpmi.
				    if ($_ ne $medium) {
					$medium->{md5sum} = $_->{md5sum};
					unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}";
					unlink "$urpm->{statedir}/$medium->{hdlist}";
					symlink "synthesis.$_->{hdlist}", "$urpm->{statedir}/synthesis.$medium->{hdlist}";
					symlink $_->{hdlist}, "$urpm->{statedir}/$medium->{hdlist}";
				    }
				    #- as previously done, just read synthesis file here, this is enough.
				    $urpm->{log}(N("examining synthesis file [%s]",
					"$urpm->{statedir}/synthesis.$medium->{hdlist}"));
				    ($medium->{start}, $medium->{end}) =
					$urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
				    unless (defined $medium->{start} && defined $medium->{end}) {
					$urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
					($medium->{start}, $medium->{end}) =
					    $urpm->parse_hdlist("$urpm->{statedir}/$medium->{hdlist}", packing => 1);
					unless (defined $medium->{start} && defined $medium->{end}) {
					    $urpm->{error}(N("problem reading hdlist or synthesis file of medium \"%s\"",
						$medium->{name}));
					    $medium->{ignore} = 1;
					}
				    }
				    #- no need to continue examining other md5sum.
				    last;
				}
			    }
			    $medium->{modified} or next;
			}
		    }

		    #- if the source hdlist is present and we are not forcing using rpms file
		    if ($options{force} < 2 && -e $with_hdlist_dir) {
			unlink "$urpm->{cachedir}/partial/$medium->{hdlist}";
			$urpm->{log}(N("copying source hdlist (or synthesis) of \"%s\"...", $medium->{name}));
			$options{callback} && $options{callback}('copy', $medium->{name});
			if (system("cp", "-p", "-R", "-H", $with_hdlist_dir, "$urpm->{cachedir}/partial/$medium->{hdlist}")) {
			    $options{callback} && $options{callback}('failed', $medium->{name});
			    #- force error, reported afterwards
			    unlink "$urpm->{cachedir}/partial/$medium->{hdlist}";
			} else {
			    $options{callback} && $options{callback}('done', $medium->{name});
			    $urpm->{log}(N("...copying done"));
			}
		    }

		    -e "$urpm->{cachedir}/partial/$medium->{hdlist}" && -s _ > 32 or
		      $error = 1, $urpm->{error}(N("copy of [%s] failed (file is suspiciously small)",
                                             "$urpm->{cachedir}/partial/$medium->{hdlist}"));

		    #- keep checking md5sum of file just copied ! (especially on nfs or removable device).
		    if (!$error && $retrieved_md5sum) {
			$urpm->{log}(N("computing md5sum of copied source hdlist (or synthesis)"));
			(split ' ', `md5sum '$urpm->{cachedir}/partial/$medium->{hdlist}'`)[0] eq $retrieved_md5sum or
			  $error = 1, $urpm->{error}(N("copy of [%s] failed (md5sum mismatch)", $with_hdlist_dir));
		    }

		    #- check if the files are equal... and no force copy...
		    if (!$error && !$options{force} && -e "$urpm->{statedir}/synthesis.$medium->{hdlist}") {
			my @sstat = stat "$urpm->{cachedir}/partial/$medium->{hdlist}";
			my @lstat = stat "$urpm->{statedir}/$medium->{hdlist}";
			if ($sstat[7] == $lstat[7] && $sstat[9] == $lstat[9]) {
			    #- the two files are considered equal here, the medium is so not modified.
			    $medium->{modified} = 0;
			    unlink "$urpm->{cachedir}/partial/$medium->{hdlist}";
			    #- as previously done, just read synthesis file here, this is enough, but only
			    #- if synthesis exists, else it need to be recomputed.
			    $urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$medium->{hdlist}"));
			    ($medium->{start}, $medium->{end}) =
				$urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
			    unless (defined $medium->{start} && defined $medium->{end}) {
				$urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
				($medium->{start}, $medium->{end}) =
				    $urpm->parse_hdlist("$urpm->{statedir}/$medium->{hdlist}", packing => 1);
				unless (defined $medium->{start} && defined $medium->{end}) {
				    $urpm->{error}(N("problem reading synthesis file of medium \"%s\"", $medium->{name}));
				    $medium->{ignore} = 1;
				}
			    }
			    next;
			}
		    }
		} else {
		    $options{force} < 2 and $options{force} = 2;
		}

		#- if copying hdlist has failed, try to build it directly.
		if ($error) {
		    $options{force} < 2 and $options{force} = 2;
		    #- clean error state now.
		    $error = undef;
		}

		if ($options{force} < 2) {
		    #- examine if a local list file is available (always probed according to with_hdlist
		    #- and check hdlist has not be named very strangely...
		    if ($medium->{hdlist} ne 'list') {
			my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list';
			my $path_list = reduce_pathname("$with_hdlist_dir/../$local_list");
			-e $path_list or $path_list = "$dir/list";
			if (-e $path_list) {
			    system("cp", "-p", "-R", $path_list, "$urpm->{cachedir}/partial/list")
				and do { $urpm->{error}(N("...copying failed")); $error = 1 };
			}
		    }
		} else {
		    #- try to find rpm files, use recursive method, added additional
		    #- / after dir to make sure it will be taken into account if this
		    #- is a symlink to a directory.
		    #- make sure rpm filename format is correct and is not a source rpm
		    #- which are not well managed by urpmi.
		    @files = split "\n", `find '$dir/' -name "*.rpm" -print`;

		    #- check files contains something good!
		    if (@files > 0) {
			#- we need to rebuild from rpm files the hdlist.
			eval {
			    $urpm->{log}(N("reading rpm files from [%s]", $dir));
			    my @unresolved_before = grep {
				! defined $urpm->{provides}{$_};
			    } keys %{$urpm->{provides} || {}};
			    $medium->{start} = @{$urpm->{depslist}};
			    $medium->{headers} = [ $urpm->parse_rpms_build_headers(
				dir   => "$urpm->{cachedir}/headers",
				rpms  => \@files,
				clean => $clean_cache,
			    ) ];
			    $medium->{end} = $#{$urpm->{depslist}};
			    if ($medium->{start} > $medium->{end}) {
				#- an error occured (provided there are files in input.)
				delete $medium->{start};
				delete $medium->{end};
				die "no rpms read\n";
			    } else {
				#- make sure the headers will not be removed for another media.
				$clean_cache = 0;
				my @unresolved = grep {
				    ! defined $urpm->{provides}{$_};
				} keys %{$urpm->{provides} || {}};
				@unresolved_before == @unresolved or $second_pass = 1;
			    }
			};
			$@ and $error = 1, $urpm->{error}(N("unable to read rpm files from [%s]: %s", $dir, $@));
			$error and delete $medium->{headers}; #- do not propagate these.
			$error or delete $medium->{synthesis}; #- when building hdlist by ourself, drop synthesis property.
		    } else {
			$error = 1;
			$urpm->{error}(N("no rpm files found from [%s]", $dir));
		    }
		}
	    }

	    #- examine if a local pubkey file is available.
	    if (!$options{nopubkey} && $medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
		my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : 'pubkey';
		my $path_pubkey = reduce_pathname("$with_hdlist_dir/../$local_pubkey");
		-e $path_pubkey or $path_pubkey = "$dir/pubkey";
		-e $path_pubkey
		    and system("cp", "-p", "-R", $path_pubkey, "$urpm->{cachedir}/partial/pubkey")
		    and do { $urpm->{error}(N("...copying failed")); $error = 1 };
	    }
	} else {
	    #- check for a reconfig.urpmi file (if not already reconfigured)
	    if (!$media_redone{$medium->{name}} and !$medium->{noreconfigure}) {
		my $reconfig_urpmi_url = "$medium->{url}/reconfig.urpmi";
		unlink( my $reconfig_urpmi = "$urpm->{cachedir}/partial/reconfig.urpmi" );
		eval {
		    $urpm->{sync}(
			{
			    dir => "$urpm->{cachedir}/partial",
			    quiet => 1,
			    limit_rate => $options{limit_rate},
			    compress => $options{compress},
			    proxy => get_proxy($medium->{name}),
			    media => $medium->{name},
			},
			reduce_pathname("$medium->{url}/reconfig.urpmi"),
		    );
		};
		if (-s $reconfig_urpmi && $urpm->reconfig_urpmi($reconfig_urpmi, $medium->{name})) {
		    $media_redone{$medium->{name}} = 1, redo MEDIA unless $media_redone{$medium->{name}};
		}
		unlink $reconfig_urpmi;
	    }

	    my $basename;

	    #- try to get the description if it has been found.
	    unlink "$urpm->{cachedir}/partial/descriptions";
	    if (-e "$urpm->{statedir}/descriptions.$medium->{name}") {
		rename("$urpm->{statedir}/descriptions.$medium->{name}", "$urpm->{cachedir}/partial/descriptions") or 
		  system("mv", "$urpm->{statedir}/descriptions.$medium->{name}", "$urpm->{cachedir}/partial/descriptions");
	    }
	    eval {
		$urpm->{sync}(
		    {
			dir => "$urpm->{cachedir}/partial",
			quiet => 1,
			limit_rate => $options{limit_rate},
			compress => $options{compress},
			proxy => get_proxy($medium->{name}),
			media => $medium->{name},
		    },
		    reduce_pathname("$medium->{url}/../descriptions"),
		);
	    };
	    if (-e "$urpm->{cachedir}/partial/descriptions") {
		rename("$urpm->{cachedir}/partial/descriptions", "$urpm->{statedir}/descriptions.$medium->{name}") or
		  system("mv", "$urpm->{cachedir}/partial/descriptions", "$urpm->{statedir}/descriptions.$medium->{name}");
	    }

	    #- examine if a distant MD5SUM file is available.
	    #- this will only be done if $with_hdlist is not empty in order to use
	    #- an existing hdlist or synthesis file, and to check if download was good.
	    #- if no MD5SUM are available, do it as before...
	    if ($medium->{with_hdlist}) {
		#- we can assume at this point a basename is existing, but it needs
		#- to be checked for being valid, nothing can be deduced if no MD5SUM
		#- file are present.
		$basename = basename($medium->{with_hdlist});

		unlink "$urpm->{cachedir}/partial/MD5SUM";
		eval {
		    if (!$options{nomd5sum}) {
			$urpm->{sync}(
			    {
				dir => "$urpm->{cachedir}/partial",
				quiet => 1,
				limit_rate => $options{limit_rate},
				compress => $options{compress},
				proxy => get_proxy($medium->{name}),
				media => $medium->{name},
			    },
			    reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../MD5SUM"),
			);
		    }
		};
		if (!$@ && -e "$urpm->{cachedir}/partial/MD5SUM" && -s _ > 32) {
		    if ($options{force} >= 2) {
			#- force downloading the file again, else why a force option has been defined ?
			delete $medium->{md5sum};
		    } else {
			unless ($medium->{md5sum}) {
			    $urpm->{log}(N("computing md5sum of existing source hdlist (or synthesis)"));
			    if ($medium->{synthesis}) {
				-e "$urpm->{statedir}/synthesis.$medium->{hdlist}" and
				  $medium->{md5sum} = (split ' ', `md5sum '$urpm->{statedir}/synthesis.$medium->{hdlist}'`)[0];
			    } else {
				-e "$urpm->{statedir}/$medium->{hdlist}" and
				  $medium->{md5sum} = (split ' ', `md5sum '$urpm->{statedir}/$medium->{hdlist}'`)[0];
			    }
			}
		    }
		    if ($medium->{md5sum}) {
			$urpm->{log}(N("examining MD5SUM file"));
			local $_;
			open my $fh, "$urpm->{cachedir}/partial/MD5SUM";
			while (<$fh>) {
			    my ($md5sum, $file) = m|(\S+)\s+(?:\./)?(\S+)| or next;
			    #- keep md5sum got here to check download was ok ! so even if md5sum is not defined, we need
			    #- to compute it, keep it in mind ;)
			    $file eq $basename and $retrieved_md5sum = $md5sum;
			}
			close $fh;
			#- if an existing hdlist or synthesis file has the same md5sum, we assume the
			#- file are the same.
			#- if local md5sum is the same as distant md5sum, this means there is no need to
			#- download hdlist or synthesis file again.
			foreach (@{$urpm->{media}}) {
			    if ($_->{md5sum} && $_->{md5sum} eq $retrieved_md5sum) {
				unlink "$urpm->{cachedir}/partial/$basename";
				#- the medium is now considered not modified.
				$medium->{modified} = 0;
				#- hdlist or synthesis file must be linked with the other same one.
				#- a link is better for reducing used size of /var/lib/urpmi.
				if ($_ ne $medium) {
				    $medium->{md5sum} = $_->{md5sum};
				    unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}";
				    unlink "$urpm->{statedir}/$medium->{hdlist}";
				    symlink "synthesis.$_->{hdlist}", "$urpm->{statedir}/synthesis.$medium->{hdlist}";
				    symlink $_->{hdlist}, "$urpm->{statedir}/$medium->{hdlist}";
				}
				#- as previously done, just read synthesis file here, this is enough.
				$urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$medium->{hdlist}"));
				($medium->{start}, $medium->{end}) =
				    $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
				unless (defined $medium->{start} && defined $medium->{end}) {
				    $urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
				    ($medium->{start}, $medium->{end}) =
					$urpm->parse_hdlist("$urpm->{statedir}/$medium->{hdlist}", packing => 1);
				    unless (defined $medium->{start} && defined $medium->{end}) {
					$urpm->{error}(N("problem reading synthesis file of medium \"%s\"", $medium->{name}));
					$medium->{ignore} = 1;
				    }
				}
				#- no need to continue examining other md5sum.
				last;
			    }
			}
			$medium->{modified} or next;
		    }
		} else {
		    #- at this point, we don't if a basename exists and is valid, let probe it later.
		    $basename = undef;
		}
	    }

	    #- try to probe for possible with_hdlist parameter, unless
	    #- it is already defined (and valid).
	    $urpm->{log}(N("retrieving source hdlist (or synthesis) of \"%s\"...", $medium->{name}));
	    $options{callback} && $options{callback}('retrieve', $medium->{name});
	    if ($options{probe_with}) {
		my ($suffix) = $dir =~ m|RPMS([^/]*)/*$|;
		my @probe_list = (
		    $medium->{with_hdlist}
		    ? $medium->{with_hdlist}
		    : _probe_with_try_list($suffix, $options{probe_with})
		);
		foreach my $with_hdlist (@probe_list) {
		    $basename = basename($with_hdlist) or next;

		    $options{force} and unlink "$urpm->{cachedir}/partial/$basename";
		    eval {
			$urpm->{sync}(
			    {
				dir => "$urpm->{cachedir}/partial",
				quiet => 0,
				limit_rate => $options{limit_rate},
				compress => $options{compress},
				callback => $options{callback},
				proxy => get_proxy($medium->{name}),
				media => $medium->{name},
			    },
			    reduce_pathname("$medium->{url}/$with_hdlist"),
			);
		    };
		    if (!$@ && -e "$urpm->{cachedir}/partial/$basename" && -s _ > 32) {
			$medium->{with_hdlist} = $with_hdlist;
			$urpm->{log}(N("found probed hdlist (or synthesis) as %s", $medium->{with_hdlist}));
			last; #- found a suitable with_hdlist in the list above.
		    }
		}
	    } else {
		$basename = basename($medium->{with_hdlist});

		#- try to sync (copy if needed) local copy after restored the previous one.
		$options{force} and unlink "$urpm->{cachedir}/partial/$basename";
		unless ($options{force}) {
		    if ($medium->{synthesis}) {
			-e "$urpm->{statedir}/synthesis.$medium->{hdlist}"
			    and system("cp", "-p", "-R",
				"$urpm->{statedir}/synthesis.$medium->{hdlist}",
				"$urpm->{cachedir}/partial/$basename")
			    and $urpm->{error}(N("...copying failed")), $error = 1;
		    } else {
			-e "$urpm->{statedir}/$medium->{hdlist}"
			    and system("cp", "-p", "-R",
				"$urpm->{statedir}/$medium->{hdlist}",
				"$urpm->{cachedir}/partial/$basename")
			    and $urpm->{error}(N("...copying failed")), $error = 1;
		    }
		}
		eval {
		    $urpm->{sync}(
			{
			    dir => "$urpm->{cachedir}/partial",
			    quiet => 0,
			    limit_rate => $options{limit_rate},
			    compress => $options{compress},
			    callback => $options{callback},
			    proxy => get_proxy($medium->{name}),
			    media => $medium->{name},
			},
			reduce_pathname("$medium->{url}/$medium->{with_hdlist}"),
		    );
		};
		if ($@) {
		    $urpm->{error}(N("...retrieving failed: %s", $@));
		    unlink "$urpm->{cachedir}/partial/$basename";
		}
	    }

	    #- check downloaded file has right signature.
	    if (-e "$urpm->{cachedir}/partial/$basename" && -s _ > 32 && $retrieved_md5sum) {
		$urpm->{log}(N("computing md5sum of retrieved source hdlist (or synthesis)"));
		unless ((split ' ', `md5sum '$urpm->{cachedir}/partial/$basename'`)[0] eq $retrieved_md5sum) {
		    $urpm->{error}(N("...retrieving failed: %s", N("md5sum mismatch")));
		    unlink "$urpm->{cachedir}/partial/$basename";
		}
	    }

	    if (-e "$urpm->{cachedir}/partial/$basename" && -s _ > 32) {
		$options{callback} && $options{callback}('done', $medium->{name});
		$urpm->{log}(N("...retrieving done"));

		unless ($options{force}) {
		    my @sstat = stat "$urpm->{cachedir}/partial/$basename";
		    my @lstat = stat "$urpm->{statedir}/$medium->{hdlist}";
		    if ($sstat[7] == $lstat[7] && $sstat[9] == $lstat[9]) {
			#- the two files are considered equal here, the medium is so not modified.
			$medium->{modified} = 0;
			unlink "$urpm->{cachedir}/partial/$basename";
			#- as previously done, just read synthesis file here, this is enough.
			$urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$medium->{hdlist}"));
			($medium->{start}, $medium->{end}) =
			    $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
			unless (defined $medium->{start} && defined $medium->{end}) {
			    $urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
			    ($medium->{start}, $medium->{end}) =
				$urpm->parse_hdlist("$urpm->{statedir}/$medium->{hdlist}", packing => 1);
			    unless (defined $medium->{start} && defined $medium->{end}) {
				$urpm->{error}(N("problem reading hdlist or synthesis file of medium \"%s\"", $medium->{name}));
				$medium->{ignore} = 1;
			    }
			}
			next;
		    }
		}

		#- the file are different, update local copy.
		rename("$urpm->{cachedir}/partial/$basename", "$urpm->{cachedir}/partial/$medium->{hdlist}");

		#- retrieval of hdlist or synthesis has been successful,
		#- check whether a list file is available.
		#- and check hdlist has not be named very strangely...
		if ($medium->{hdlist} ne 'list') {
		    my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list';
		    foreach (reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../$local_list"),
			     reduce_pathname("$medium->{url}/list"),
			    ) {
			eval {
			    $urpm->{sync}(
				{
				    dir => "$urpm->{cachedir}/partial",
				    quiet => 1,
				    limit_rate => $options{limit_rate},
				    compress => $options{compress},
				    proxy => get_proxy($medium->{name}),
				    media => $medium->{name},
				},
				$_
			    );
			    $local_list ne 'list' && -e "$urpm->{cachedir}/partial/$local_list" && -s _
				and rename(
				    "$urpm->{cachedir}/partial/$local_list",
				    "$urpm->{cachedir}/partial/list");
			};
			$@ and unlink "$urpm->{cachedir}/partial/list";
			-s "$urpm->{cachedir}/partial/list" and last;
		    }
		}

		#- retrieve pubkey file.
		if (!$options{nopubkey} && $medium->{hdlist} ne 'pubkey' && !$medium->{'key-ids'}) {
		    my $local_pubkey = $medium->{with_hdlist} =~ /hdlist(.*)\.cz2?$/ ? "pubkey$1" : 'pubkey';
		    foreach (reduce_pathname("$medium->{url}/$medium->{with_hdlist}/../$local_pubkey"),
			     reduce_pathname("$medium->{url}/pubkey"),
			    ) {
			eval {
			    $urpm->{sync}(
				{
				    dir => "$urpm->{cachedir}/partial",
				    quiet => 1,
				    limit_rate => $options{limit_rate},
				    compress => $options{compress},
				    proxy => get_proxy($medium->{name}),
				    media => $medium->{name},
				},
				$_,
			    );
			    $local_pubkey ne 'pubkey' && -e "$urpm->{cachedir}/partial/$local_pubkey" && -s _
				and rename(
				    "$urpm->{cachedir}/partial/$local_pubkey",
				    "$urpm->{cachedir}/partial/pubkey");
			};
			$@ and unlink "$urpm->{cachedir}/partial/pubkey";
			-s "$urpm->{cachedir}/partial/pubkey" and last;
		    }
		}
	    } else {
		$error = 1;
		$options{callback} && $options{callback}('failed', $medium->{name});
		$urpm->{error}(N("retrieval of source hdlist (or synthesis) failed"));
	    }
	}

	#- build list file according to hdlist.
	unless ($medium->{headers} || -e "$urpm->{cachedir}/partial/$medium->{hdlist}" && -s _ > 32) {
	    $error = 1;
	    $urpm->{error}(N("no hdlist file found for medium \"%s\"", $medium->{name}));
	}

	unless ($error || $medium->{virtual}) {
	    #- sort list file contents according to id.
	    my %list;
	    if ($medium->{headers}) {
		#- rpm files have already been read (first pass), there is just a need to
		#- build list hash.
		foreach (@files) {
		    m|/([^/]*\.rpm)$| or next;
		    $list{$1} and $urpm->{error}(N("file [%s] already used in the same medium \"%s\"", $1, $medium->{name})), next;
		    $list{$1} = "$prefix:/$_\n";
		}
	    } else {
		#- read first pass hdlist or synthesis, try to open as synthesis, if file
		#- is larger than 1MB, this is probably an hdlist else a synthesis.
		#- anyway, if one tries fails, try another mode.
		$options{callback} && $options{callback}('parse', $medium->{name});
		my @unresolved_before = grep { ! defined $urpm->{provides}{$_} } keys %{$urpm->{provides} || {}};
		if (!$medium->{synthesis}
		    || -e "$urpm->{cachedir}/partial/$medium->{hdlist}" && -s _ > 262144)
		{
		    $urpm->{log}(N("examining hdlist file [%s]", "$urpm->{cachedir}/partial/$medium->{hdlist}"));
		    ($medium->{start}, $medium->{end}) =
			     $urpm->parse_hdlist("$urpm->{cachedir}/partial/$medium->{hdlist}", 1);
		    if (defined $medium->{start} && defined $medium->{end}) {
			delete $medium->{synthesis};
		    } else {
			$urpm->{log}(N("examining synthesis file [%s]", "$urpm->{cachedir}/partial/$medium->{hdlist}"));
			($medium->{start}, $medium->{end}) =
				 $urpm->parse_synthesis("$urpm->{cachedir}/partial/$medium->{hdlist}");
			defined $medium->{start} && defined $medium->{end} and $medium->{synthesis} = 1;
		    }
		} else {
		    $urpm->{log}(N("examining synthesis file [%s]", "$urpm->{cachedir}/partial/$medium->{hdlist}"));
		    ($medium->{start}, $medium->{end}) =
			     $urpm->parse_synthesis("$urpm->{cachedir}/partial/$medium->{hdlist}");
		    if (defined $medium->{start} && defined $medium->{end}) {
			$medium->{synthesis} = 1;
		    } else {
			$urpm->{log}(N("examining hdlist file [%s]", "$urpm->{cachedir}/partial/$medium->{hdlist}"));
			($medium->{start}, $medium->{end}) =
				 $urpm->parse_hdlist("$urpm->{cachedir}/partial/$medium->{hdlist}", 1);
			defined $medium->{start} && defined $medium->{end} and delete $medium->{synthesis};
		    }
		}
		if (defined $medium->{start} && defined $medium->{end}) {
		    $options{callback} && $options{callback}('done', $medium->{name});
		} else {
		    $error = 1;
		    $urpm->{error}(N("unable to parse hdlist file of \"%s\"", $medium->{name}));
		    $options{callback} && $options{callback}('failed', $medium->{name});
		    #- we will have to read back the current synthesis file unmodified.
		}

		unless ($error) {
		    my @unresolved_after = grep { ! defined $urpm->{provides}{$_} } keys %{$urpm->{provides} || {}};
		    @unresolved_before == @unresolved_after or $second_pass = 1;

		    if ($medium->{hdlist} ne 'list' && -s "$urpm->{cachedir}/partial/list") {
			local $_;
			open my $fh, "$urpm->{cachedir}/partial/list";
			while (<$fh>) {
			    m|/([^/]*\.rpm)$| or next;
			    $list{$1} and $urpm->{error}(N("file [%s] already used in the same medium \"%s\"", $1, $medium->{name})), next;
			    $list{$1} = "$medium->{url}/$_";
			}
			close $fh;
		    } else {
			#- if url is clear and no relative list file has been downloaded,
			#- there is no need for a list file.
			if ($medium->{url} ne $medium->{clear_url}) {
			    foreach ($medium->{start} .. $medium->{end}) {
				my $filename = $urpm->{depslist}[$_]->filename;
				$list{$filename} = "$medium->{url}/$filename\n";
			    }
			}
		    }
		}
	    }

	    unless ($error) {
		if (%list) {
		    #- write list file.
		    #- make sure group and other do not have any access to this file, used to hide passwords.
		    my $mask = umask 077;
		    open my $listfh, ">$urpm->{cachedir}/partial/$medium->{list}"
		      or $error = 1, $urpm->{error}(N("unable to write list file of \"%s\"", $medium->{name}));
		    umask $mask;
		    print $listfh values %list;
		    close $listfh;

		    #- check if at least something has been written into list file.
		    if (-s "$urpm->{cachedir}/partial/$medium->{list}") {
			$urpm->{log}(N("writing list file for medium \"%s\"", $medium->{name}));
		    } else {
			$error = 1, $urpm->{error}(N("nothing written in list file for \"%s\"", $medium->{name}));
		    }
		} else {
		    #- the flag is no more necessary.
		    if ($medium->{list}) {
			unlink "$urpm->{statedir}/$medium->{list}";
			delete $medium->{list};
		    }
		}
	    }
	}

	unless ($error) {
	    #- now... on pubkey
	    if (-s "$urpm->{cachedir}/partial/pubkey") {
		$urpm->{log}(N("examining pubkey file of \"%s\"...", $medium->{name}));
		my %key_ids;
		$urpm->import_needed_pubkeys([ $urpm->parse_armored_file("$urpm->{cachedir}/partial/pubkey") ],
					     root => $urpm->{root}, callback => sub {
						 my (undef, undef, $k, $id, $imported) = @_;
						 if ($id) {
						     $key_ids{$id} = undef;
						     $imported and $urpm->{log}(N("...imported key %s from pubkey file of \"%s\"",
										  $id, $medium->{name}));
						 } else {
						     $urpm->{error}(N("unable to import pubkey file of \"%s\"", $medium->{name}));
						 }
					     });
		keys(%key_ids) and $medium->{'key-ids'} = join ',', keys %key_ids;
	    }
	}

	unless ($medium->{virtual}) {
	    if ($error) {
		#- an error has occured for updating the medium, we have to remove tempory files.
		unlink "$urpm->{cachedir}/partial/$medium->{hdlist}";
		$medium->{list} and unlink "$urpm->{cachedir}/partial/$medium->{list}";
		#- read default synthesis (we have to make sure nothing get out of depslist).
		$urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$medium->{hdlist}"));
		($medium->{start}, $medium->{end}) = $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
		unless (defined $medium->{start} && defined $medium->{end}) {
		    $urpm->{error}(N("problem reading synthesis file of medium \"%s\"", $medium->{name}));
		    $medium->{ignore} = 1;
		}
	    } else {
		#- make sure to rebuild base files and clean medium modified state.
		$medium->{modified} = 0;
		$urpm->{modified} = 1;

		#- but use newly created file.
		unlink "$urpm->{statedir}/$medium->{hdlist}";
		$medium->{synthesis} and unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}";
		$medium->{list} and unlink "$urpm->{statedir}/$medium->{list}";
		unless ($medium->{headers}) {
		    unlink "$urpm->{statedir}/synthesis.$medium->{hdlist}";
		    unlink "$urpm->{statedir}/$medium->{hdlist}";
		    rename("$urpm->{cachedir}/partial/$medium->{hdlist}", $medium->{synthesis} ?
			   "$urpm->{statedir}/synthesis.$medium->{hdlist}" : "$urpm->{statedir}/$medium->{hdlist}") or
			     system("mv", "$urpm->{cachedir}/partial/$medium->{hdlist}", $medium->{synthesis} ?
				    "$urpm->{statedir}/synthesis.$medium->{hdlist}" :
				    "$urpm->{statedir}/$medium->{hdlist}");
		}
		if ($medium->{list}) {
		    rename("$urpm->{cachedir}/partial/$medium->{list}", "$urpm->{statedir}/$medium->{list}") or
		      system("mv", "$urpm->{cachedir}/partial/$medium->{list}", "$urpm->{statedir}/$medium->{list}");
		}
		$medium->{md5sum} = $retrieved_md5sum; #- anyway, keep it, the previous one is no more usefull.

		#- and create synthesis file associated.
		$medium->{modified_synthesis} = !$medium->{synthesis};
	    }
	}
    }

    #- some unresolved provides may force to rebuild all synthesis,
    #- a second pass will be necessary.
    if ($second_pass) {
	$urpm->{log}(N("performing second pass to compute dependencies\n"));
	$urpm->unresolved_provides_clean;
    }

    #- second pass consists in reading again synthesis or hdlists.
    foreach my $medium (@{$urpm->{media}}) {
	#- take care of modified medium only, or all if all have to be recomputed.
	$medium->{ignore} and next;

	$options{callback} && $options{callback}('parse', $medium->{name});
	#- a modified medium is an invalid medium, we have to read back the previous hdlist
	#- or synthesis which has not been modified by first pass above.
	if ($medium->{headers} && !$medium->{modified}) {
	    if ($second_pass) {
		$urpm->{log}(N("reading headers from medium \"%s\"", $medium->{name}));
		($medium->{start}, $medium->{end}) = $urpm->parse_headers(dir     => "$urpm->{cachedir}/headers",
									  headers => $medium->{headers},
									 );
	    }
	    $urpm->{log}(N("building hdlist [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
	    #- finish building operation of hdlist.
	    $urpm->build_hdlist(start  => $medium->{start},
				end    => $medium->{end},
				dir    => "$urpm->{cachedir}/headers",
				hdlist => "$urpm->{statedir}/$medium->{hdlist}",
			       );
	    #- synthesis needs to be created, since the medium has been built from rpm files.
	    $urpm->build_synthesis(start     => $medium->{start},
				   end       => $medium->{end},
				   synthesis => "$urpm->{statedir}/synthesis.$medium->{hdlist}",
				  );
	    $urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name}));
	    #- keep in mind we have a modified database, sure at this point.
	    $urpm->{modified} = 1;
	} elsif ($medium->{synthesis}) {
	    if ($second_pass) {
		if ($medium->{virtual}) {
		    my ($path) = $medium->{url} =~ m|^file:/*(/[^/].*[^/])/*$|;
		    my $with_hdlist_file = "$path/$medium->{with_hdlist}";
		    if ($path) {
			$urpm->{log}(N("examining synthesis file [%s]", $with_hdlist_file));
			($medium->{start}, $medium->{end}) = $urpm->parse_synthesis($with_hdlist_file);
		    }
		} else {
		    $urpm->{log}(N("examining synthesis file [%s]", "$urpm->{statedir}/synthesis.$medium->{hdlist}"));
		    ($medium->{start}, $medium->{end}) = $urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}");
		}
	    }
	} else {
	    if ($second_pass) {
		$urpm->{log}(N("examining hdlist file [%s]", "$urpm->{statedir}/$medium->{hdlist}"));
		($medium->{start}, $medium->{end}) = $urpm->parse_hdlist("$urpm->{statedir}/$medium->{hdlist}", 1);
	    }
	    #- check if the synthesis file can be built.
	    if (($second_pass || $medium->{modified_synthesis}) && !$medium->{modified}) {
		unless ($medium->{virtual}) {
		    $urpm->build_synthesis(start     => $medium->{start},
					   end       => $medium->{end},
					   synthesis => "$urpm->{statedir}/synthesis.$medium->{hdlist}",
					  );
		    $urpm->{log}(N("built hdlist synthesis file for medium \"%s\"", $medium->{name}));
		}
		#- keep in mind we have modified database, sure at this point.
		$urpm->{modified} = 1;
	    }
	}
	$options{callback} && $options{callback}('done', $medium->{name});
    }

    #- clean headers cache directory to remove everything that is no more
    #- useful according to the depslist.
    if ($urpm->{modified}) {
	if ($options{noclean}) {
	    local $_;
	    my %headers;
	    opendir my $dh, "$urpm->{cachedir}/headers";
	    while (defined($_ = readdir $dh)) {
		m|^([^/]*-[^-]*-[^-]*\.[^\.]*)(?::\S*)?$| and $headers{$1} = $_;
	    }
	    closedir $dh;
	    $urpm->{log}(N("found %d headers in cache", scalar(keys %headers)));
	    foreach (@{$urpm->{depslist}}) {
		delete $headers{$_->fullname};
	    }
	    $urpm->{log}(N("removing %d obsolete headers in cache", scalar(keys %headers)));
	    foreach (values %headers) {
		unlink "$urpm->{cachedir}/headers/$_";
	    }
	}

	#- write config files in any case
	$urpm->write_config;
	dump_proxy_config();
    }

    #- make sure names files are regenerated.
    foreach (@{$urpm->{media}}) {
	unlink "$urpm->{statedir}/names.$_->{name}";
	if (defined $_->{start} && defined $_->{end}) {
	    open my $fh, ">$urpm->{statedir}/names.$_->{name}";
	    foreach ($_->{start} .. $_->{end}) {
		print $fh $urpm->{depslist}[$_]->name."\n";
	    }
	    close $fh;
	}
    }

    $options{nolock} or $urpm->unlock_urpmi_db;
    $options{nopubkey} or $urpm->unlock_rpm_db;
}

#- clean params and depslist computation zone.
sub clean {
    my ($urpm) = @_;

    $urpm->{depslist} = [];
    $urpm->{provides} = {};

    foreach (@{$urpm->{media} || []}) {
	delete $_->{start};
	delete $_->{end};
    }
}

#- check for necessity of mounting some directory to get access
sub try_mounting {
    my ($urpm, $dir, $removable) = @_;
    my %infos;

    $dir = reduce_pathname($dir);
    foreach (grep {
	    ! $infos{$_}{mounted} && $infos{$_}{fs} ne 'supermount';
	} urpm::sys::find_mntpoints($dir, \%infos))
    {
	$urpm->{log}(N("mounting %s", $_));
	`mount '$_' 2>/dev/null`;
	$removable && $infos{$_}{fs} ne 'supermount' and $urpm->{removable_mounted}{$_} = undef;
    }
    -e $dir;
}

sub try_umounting {
    my ($urpm, $dir) = @_;
    my %infos;

    $dir = reduce_pathname($dir);
    foreach (reverse grep {
	    $infos{$_}{mounted} && $infos{$_}{fs} ne 'supermount';
	} urpm::sys::find_mntpoints($dir, \%infos))
    {
	$urpm->{log}(N("unmounting %s", $_));
	`umount '$_' 2>/dev/null`;
	delete $urpm->{removable_mounted}{$_};
    }
    ! -e $dir;
}

sub try_umounting_removables {
    my ($urpm) = @_;
    foreach (keys %{$urpm->{removable_mounted}}) {
	$urpm->try_umounting($_);
    }
    delete $urpm->{removable_mounted};
}

#- relocate depslist array id to use only the most recent packages,
#- reorder info hashes to give only access to best packages.
sub relocate_depslist_provides {
    my ($urpm, %options) = @_;
    my $relocated_entries = $urpm->relocate_depslist;

    $urpm->{log}($relocated_entries ?
		 N("relocated %s entries in depslist", $relocated_entries) :
		 N("no entries relocated in depslist"));
    $relocated_entries;
}

#- register local packages for being installed, keep track of source.
sub register_rpms {
    my ($urpm, @files) = @_;
    my ($start, $id, $error, %requested);

    #- examine each rpm and build the depslist for them using current
    #- depslist and provides environment.
    $start = @{$urpm->{depslist}};
    foreach (@files) {
	/\.rpm$/ or $error = 1, $urpm->{error}(N("invalid rpm file name [%s]", $_)), next;

	#- allow url to be given.
	if (my ($basename) = m|^[^:]*:/.*/([^/]*\.rpm)$|) {
	    unlink "$urpm->{cachedir}/partial/$basename";
	    eval {
		$urpm->{log}(N("retrieving rpm file [%s] ...", $_));
		$urpm->{sync}({ dir => "$urpm->{cachedir}/partial", quiet => 1, proxy => get_proxy() }, $_);
		$urpm->{log}(N("...retrieving done"));
		$_ = "$urpm->{cachedir}/partial/$basename";
	    };
	    $@ and $urpm->{error}(N("...retrieving failed: %s", $@));
	} else {
	    -r $_ or $error = 1, $urpm->{error}(N("unable to access rpm file [%s]", $_)), next;
	}

	($id, undef) = $urpm->parse_rpm($_);
	my $pkg = defined $id && $urpm->{depslist}[$id];
	$pkg or $urpm->{error}(N("unable to register rpm file")), next;
	$urpm->{source}{$id} = $_;
    }
    $error and $urpm->{fatal}(2, N("error registering local packages"));
    defined $id && $start <= $id and @requested{($start .. $id)} = (1) x ($id-$start+1);

    #- distribute local packages to distant nodes directly in cache of each machine.
    @files && $urpm->{parallel_handler} and $urpm->{parallel_handler}->parallel_register_rpms(@_);

    %requested;
}

sub _findindeps {
    my ($urpm, $found, $v, %options) = @_;
    my @list = grep { defined $_ } map {
	my $pkg = $urpm->{depslist}[$_];
	$pkg
	&& ($options{src} ? $pkg->arch eq 'src' : $pkg->arch ne 'src')
	? $pkg->id : undef;
    } keys %{$urpm->{provides}{$_} || {}};
    @list > 0 and push @{$found->{$v}}, join '|', @list;
}

#- search packages registered by their names by storing their ids into the $packages hash.
sub search_packages {
    my ($urpm, $packages, $names, %options) = @_;
    my (%exact, %exact_a, %exact_ra, %found, %foundi);

    foreach my $v (@$names) {
	my $qv = quotemeta $v;
	$qv = '(?i)'.$qv if $options{caseinsensitive};

	unless ($options{fuzzy}) {
	    #- try to search through provides.
	    if (my @l = map {
		    $_
		    && ($options{src} ? $_->arch eq 'src' : $_->is_arch_compat)
		    && ($options{use_provides} || $_->name eq $v)
		    && defined $_->id
		    ? $_ : @{[]}
		} map {
		    $urpm->{depslist}[$_]
		} keys %{$urpm->{provides}{$v} || {}})
	    {
		#- we assume that if there is at least one package providing
		#- the resource exactly, this should be the best one; but we
		#- first check if one of the packages has the same name as searched.
		if ((my @l2) = grep { $_->name eq $v } @l) {
		    $exact{$v} = join '|', map { $_->id } @l2;
		} else {
		    $exact{$v} = join '|', map { $_->id } @l;
		}
		next;
	    }
	}

	if ($options{use_provides} && $options{fuzzy}) {
	    foreach (keys %{$urpm->{provides}}) {
		#- search through provides to find if a provide matches this one;
		#- but manage choices correctly (as a provides may be virtual or
		#- defined several times).
		if (/$qv/ || (!$options{caseinsensitive} && /$qv/i)) {
		    $urpm->_findindeps(\%found, $v, %options);
		}
	    }
	}

	foreach my $id (0 .. $#{$urpm->{depslist}}) {
	    my $pkg = $urpm->{depslist}[$id];

	    ($options{src} ? $pkg->arch eq 'src' : $pkg->is_arch_compat) or next;

	    my $pack_ra = $pkg->name . '-' . $pkg->version;
	    my $pack_a = "$pack_ra-" . $pkg->release;
	    my $pack = "$pack_a." . $pkg->arch;

	    unless ($options{fuzzy}) {
		if ($pack eq $v) {
		    $exact{$v} = $id;
		    next;
		} elsif ($pack_a eq $v) {
		    push @{$exact_a{$v}}, $id;
		    next;
		} elsif ($pack_ra eq $v) {
		    push @{$exact_ra{$v}}, $id;
		    next;
		}
	    }

	    $pack =~ /$qv/ and push @{$found{$v}}, $id;
	    $pack =~ /$qv/i and push @{$foundi{$v}}, $id unless $options{caseinsensitive};
	}
    }

    my $result = 1;
    foreach (@$names) {
	if (defined $exact{$_}) {
	    $packages->{$exact{$_}} = 1;
	    foreach (split /\|/, $exact{$_}) {
		my $pkg = $urpm->{depslist}[$_] or next;
		$pkg->set_flag_skip(0); #- reset skip flag as manually selected.
	    }
	} else {
	    #- at this level, we need to search the best package given for a given name,
	    #- always prefer already found package.
	    my %l;
	    foreach (@{$exact_a{$_} || $exact_ra{$_} || $found{$_} || $foundi{$_} || []}) {
		my $pkg = $urpm->{depslist}[$_];
		push @{$l{$pkg->name}}, $pkg;
	    }
	    if (values(%l) == 0) {
		$urpm->{error}(N("no package named %s", $_));
		$result = 0;
	    } elsif (values(%l) > 1 && !$options{all}) {
		$urpm->{error}(N("The following packages contain %s: %s",
			$_, "\n".join("\n", sort { $a cmp $b } keys %l)));
		$result = 0;
	    } else {
		foreach (values %l) {
		    my $best;
		    foreach (@$_) {
			if ($best && $best != $_) {
			    $_->compare_pkg($best) > 0 and $best = $_;
			} else {
			    $best = $_;
			}
		    }
		    $packages->{$best->id} = 1;
		    $best->set_flag_skip(0); #- reset skip flag as manually selected.
		}
	    }
	}
    }

    #- return true if no error has been encoutered, else false.
    $result;
}

#- Resolves dependencies between requested packages (and auto selection if any).
#- handles parallel option if any.
#- The return value is true if program should be restarted (in order to take
#- care of important packages being upgraded (notably urpmi and perl-URPM, but
#- maybe rpm too, and glibc also ?).
sub resolve_dependencies {
    my ($urpm, $state, $requested, %options) = @_;
    my $need_restart;

    if ($options{install_src}) {
	#- only src will be installed, so only update $state->{selected} according
	#- to src status of files.
	foreach (%$requested) {
	    my $pkg = $urpm->{depslist}[$_] or next;
	    $pkg->arch eq 'src' or next;
	    $state->{selected}{$_} = undef;
	}
    }
    if ($urpm->{parallel_handler}) {
	#- build the global synthesis file first.
	my $file = "$urpm->{cachedir}/partial/parallel.cz";
	unlink $file;
	foreach (@{$urpm->{media}}) {
	    defined $_->{start} && defined $_->{end} or next;
	    system "cat '$urpm->{statedir}/synthesis.$_->{hdlist}' >> $file";
	}
	#- let each node determine what is requested, according to handler given.
	$urpm->{parallel_handler}->parallel_resolve_dependencies($file, @_);
    } else {
	my $db;

	if ($options{rpmdb}) {
	    $db = new URPM;
	    $db->parse_synthesis($options{rpmdb});
	} else {
	    $db = URPM::DB::open($urpm->{root});
	    $db or $urpm->{fatal}(9, N("unable to open rpmdb"));
	}

	my $sig_handler = sub { undef $db; exit 3 };
	local $SIG{INT} = $sig_handler;
	local $SIG{QUIT} = $sig_handler;

	#- auto select package for upgrading the distribution.
	if ($options{auto_select}) {
	    $urpm->request_packages_to_upgrade($db, $state, $requested, requested => undef);
	}

	#- resolve dependencies which will be examined for packages that need to
	#- have urpmi restarted when they're updated.
	$urpm->resolve_requested($db, $state, $requested, %options);

	if ($options{priority_upgrade} && !$options{rpmdb}) {
	    my (%priority_upgrade, %priority_requested);
	    @priority_upgrade{split ',', $options{priority_upgrade}} = ();

	    #- try to find if a priority upgrade should be tried, this is erwan feature he waited for months :)
	    #- this can be also considered as a special gift...
	    foreach (keys %{$state->{selected}}) {
		my $pkg = $urpm->{depslist}[$_] or next;
		exists $priority_upgrade{$pkg->name} or next;
		$priority_requested{$pkg->id} = undef;
	    }

	    if (%priority_requested) {
		my %priority_state;

		$urpm->resolve_requested($db, \%priority_state, \%priority_requested, %options);
		if (grep { ! exists $priority_state{selected}{$_} } keys %priority_requested) {
		    #- some packages which were selected previously have not been selected, strange!
		    $need_restart = 0;
		} elsif (grep { ! exists $priority_state{selected}{$_} } keys %{$state->{selected}}) {
		    #- there are other packages to install after this priority transaction.
		    %$state = %priority_state;
		    $need_restart = 1;
		}
	    }
	}
    }

    #- allow caller to know if it should try to restart.
    $need_restart;
}

sub create_transaction {
    my ($urpm, $state, %options) = @_;

    if ($urpm->{parallel_handler} || !$options{split_length} || $options{nodeps} ||
	keys %{$state->{selected}} < $options{split_level}) {
	#- build simplest transaction (no split).
	$urpm->build_transaction_set(undef, $state, split_length => 0);
    } else {
	my $db;

	if ($options{rpmdb}) {
	    $db = new URPM;
	    $db->parse_synthesis($options{rpmdb});
	} else {
	    $db = URPM::DB::open($urpm->{root});
	    $db or $urpm->{fatal}(9, N("unable to open rpmdb"));
	}

	my $sig_handler = sub { undef $db; exit 3 };
	local $SIG{INT} = $sig_handler;
	local $SIG{QUIT} = $sig_handler;

	#- build transaction set...
	$urpm->build_transaction_set($db, $state, split_length => $options{split_length});
    }
}

#- get the list of packages that should not be upgraded or installed,
#- typically from the inst.list or skip.list files.
sub get_packages_list {
    my ($file, $extra) = @_;
    my $val = [];
    local $_;
    open my $f, $file or return {};
    for (<$f>, split /,/, $extra) {
	chomp; s/#.*$//; s/^\s*//; s/\s*$//;
	push @$val, $_;
    }
    close $f;
    $val;
}

#- select source for package selected.
#- according to keys given in the packages hash.
#- return a list of list containing the source description for each rpm,
#- match exactly the number of medium registered, ignored medium always
#- have a null list.
sub get_source_packages {
    my ($urpm, $packages, %options) = @_;
    my ($id, $error, @list_error, %protected_files, %local_sources, @list, %fullname2id, %file2fullnames, %examined);
    local $_;

    #- build association hash to retrieve id and examine all list files.
    foreach (keys %$packages) {
	my $p = $urpm->{depslist}[$_];
	if ($urpm->{source}{$_}) {
	    $protected_files{$local_sources{$_} = $urpm->{source}{$_}} = undef;
	} else {
	    $fullname2id{$p->fullname} = $_.'';
	}
    }

    #- examine each medium to search for packages.
    #- now get rpm file name in hdlist to match list file.
    foreach my $pkg (@{$urpm->{depslist} || []}) {
	$file2fullnames{$pkg->filename}{$pkg->fullname} = undef;
    }

    #- examine the local repository, which is trusted (no gpg or pgp signature check but md5 is now done).
    opendir my $dh, "$urpm->{cachedir}/rpms";
    while (defined($_ = readdir $dh)) {
	if (my ($filename) = m|^([^/]*\.rpm)$|) {
	    my $filepath = "$urpm->{cachedir}/rpms/$filename";
	    if (!$options{clean_all} && -s $filepath) {
		if (keys(%{$file2fullnames{$filename} || {}}) > 1) {
		    $urpm->{error}(N("there are multiple packages with the same rpm filename \"%s\""), $filename);
		    next;
		} elsif (keys(%{$file2fullnames{$filename} || {}}) == 1) {
		    my ($fullname) = keys(%{$file2fullnames{$filename} || {}});
		    if (defined($id = delete $fullname2id{$fullname})) {
			$local_sources{$id} = $filepath;
		    } else {
			$options{clean_other} && ! exists $protected_files{$filepath} and unlink $filepath;
		    }
		} else {
		    $options{clean_other} && ! exists $protected_files{$filepath} and unlink $filepath;
		}
	    } else {
		#- this file should be removed or is already empty.
		unlink $filepath;
	    }
	} #- no error on unknown filename located in cache (because .listing) inherited from old urpmi
    }
    closedir $dh;

    #- clean download directory, do it here even if this is not the best moment.
    if ($options{clean_all}) {
	system("rm", "-rf", "$urpm->{cachedir}/partial");
	mkdir "$urpm->{cachedir}/partial";
    }

    foreach my $medium (@{$urpm->{media} || []}) {
	my (%sources, %list_examined, $list_warning);

	if (defined $medium->{start} && defined $medium->{end} && !$medium->{ignore}) {
	    #- always prefer a list file is available.
	    my $file = $medium->{list} ? "$urpm->{statedir}/$medium->{list}" : '';
	    if (!$file && $medium->{virtual}) {
		my ($dir) = $medium->{url} =~ m!^(?:removable[^:]*|file)?:/(.*)!;
		my $with_hdlist_dir = reduce_pathname($dir . ($medium->{with_hdlist} ? "/$medium->{with_hdlist}" : "/.."));
		my $local_list = $medium->{with_hdlist} =~ /hd(list.*)\.cz2?$/ ? $1 : 'list';
		$file = reduce_pathname("$with_hdlist_dir/../$local_list");
		-s $file or $file = "$dir/list";
	    }
	    if ($file && -r $file) {
		open my $fh, $file or die $!;
		while (<$fh>) {
		    if (my ($filename) = m|/([^/]*\.rpm)$|) {
			if (keys(%{$file2fullnames{$filename} || {}}) > 1) {
			    $urpm->{error}(N("there are multiple packages with the same rpm filename \"%s\""), $filename);
			    next;
			} elsif (keys(%{$file2fullnames{$filename} || {}}) == 1) {
			    my ($fullname) = keys(%{$file2fullnames{$filename} || {}});
			    defined($id = $fullname2id{$fullname}) and $sources{$id} =
			      $medium->{virtual} ? "$medium->{url}/$_" : $_;
			    $list_examined{$fullname} = $examined{$fullname} = undef;
			}
		    } else {
			chomp;
			$error = 1;
			$urpm->{error}(N("unable to correctly parse [%s] on value \"%s\"", $file, $_));
			last;
		    }
		}
		close $fh;
	    } elsif ($file && -e $file) {
		# list file exists but isn't readable
		# report error only if no result found, list files are only readable by root
		push @list_error, N("unable to access list file of \"%s\", medium ignored", $medium->{name});
		next;
	    }
	    if (defined $medium->{url}) {
		foreach ($medium->{start} .. $medium->{end}) {
		    my $pkg = $urpm->{depslist}[$_];
		    if (keys(%{$file2fullnames{$pkg->filename} || {}}) > 1) {
			$urpm->{error}(N("there are multiple packages with the same rpm filename \"%s\""), $pkg->filename);
			next;
		    } elsif (keys(%{$file2fullnames{$pkg->filename} || {}}) == 1) {
			my ($fullname) = keys(%{$file2fullnames{$pkg->filename} || {}});
			unless (exists($list_examined{$fullname})) {
			    ++$list_warning;
			    defined($id = $fullname2id{$fullname}) and $sources{$id} = "$medium->{url}/".$pkg->filename;
			    $examined{$fullname} = undef;
			}
		    }
		}
		$list_warning && $medium->{list} && -r "$urpm->{statedir}/$medium->{list}" and
		  $urpm->{error}(N("medium \"%s\" uses an invalid list file:
  mirror is probably not up-to-date, trying to use alternate method", $medium->{name}));
	    } elsif (!%list_examined) {
		$error = 1;
		$urpm->{error}(N("medium \"%s\" does not define any location for rpm files", $medium->{name}));
	    }
	}
	push @list, \%sources;
    }

    #- examine package list to see if a package has not been found.
    foreach (grep { ! exists($examined{$_}) } keys %fullname2id) {
	# print list errors only once if any
	@list_error and map { $urpm->{error}($_) } @list_error;
	@list_error = ();
	$error = 1;
	$urpm->{error}(N("package %s is not found.", $_));
    }

    $error ? @{[]} : (\%local_sources, \@list);
}

#- download package that may need to be downloaded.
#- make sure header are available in the appropriate directory.
#- change location to find the right package in the local
#- filesystem for only one transaction.
#- try to mount/eject removable media here.
#- return a list of package ready for rpm.
sub download_source_packages {
    my ($urpm, $local_sources, $list, %options) = @_;
    my %sources = %$local_sources;
    my %error_sources;

    print STDERR "calling obsoleted method urpm::download_source_packages\n";

    $urpm->exlock_urpmi_db;
    $urpm->copy_packages_of_removable_media($list, \%sources, %options) or return;
    $urpm->download_packages_of_distant_media($list, \%sources, \%error_sources, %options);
    $urpm->unlock_urpmi_db;

    %sources, %error_sources;
}

#- lock policy concerning chroot :
#  - lock rpm db in chroot
#  - lock urpmi db in /

#- safety rpm db locking mechanism
sub exlock_rpm_db {
    my ($urpm) = @_;

    #- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
    my ($LOCK_EX, $LOCK_NB) = (2, 4);

    #- lock urpmi database, but keep lock to wait for an urpmi.update to finish.
    open RPMLOCK_FILE, ">$urpm->{root}/$urpm->{statedir}/.RPMLOCK";
    flock RPMLOCK_FILE, $LOCK_EX|$LOCK_NB or $urpm->{fatal}(7, N("urpmi database locked"));
}
sub shlock_rpm_db {
    my ($urpm) = @_;

    #- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
    my ($LOCK_SH, $LOCK_NB) = (1, 4);

    #- create the .LOCK file if needed (and if possible)
    unless (-e "$urpm->{root}/$urpm->{statedir}/.RPMLOCK") {
	open RPMLOCK_FILE, ">$urpm->{root}/$urpm->{statedir}/.RPMLOCK";
	close RPMLOCK_FILE;
    }
    #- lock urpmi database, if the LOCK file doesn't exists no share lock.
    open RPMLOCK_FILE, "$urpm->{root}/$urpm->{statedir}/.RPMLOCK" or return;
    flock RPMLOCK_FILE, $LOCK_SH|$LOCK_NB or $urpm->{fatal}(7, N("urpmi database locked"));
}
sub unlock_rpm_db {
    my ($urpm) = @_;

    #- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
    my $LOCK_UN = 8;

    #- now everything is finished.
    system("sync");

    #- release lock on database.
    flock RPMLOCK_FILE, $LOCK_UN;
    close RPMLOCK_FILE;
}

sub exlock_urpmi_db {
    my ($urpm) = @_;

    #- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
    my ($LOCK_EX, $LOCK_NB) = (2, 4);

    #- lock urpmi database, but keep lock to wait for an urpmi.update to finish.
    open LOCK_FILE, ">$urpm->{statedir}/.LOCK";
    flock LOCK_FILE, $LOCK_EX|$LOCK_NB or $urpm->{fatal}(7, N("urpmi database locked"));
}
sub shlock_urpmi_db {
    my ($urpm) = @_;

    #- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
    my ($LOCK_SH, $LOCK_NB) = (1, 4);

    #- create the .LOCK file if needed (and if possible)
    unless (-e "$urpm->{statedir}/.LOCK") {
	open LOCK_FILE, ">$urpm->{statedir}/.LOCK";
	close LOCK_FILE;
    }
    #- lock urpmi database, if the LOCK file doesn't exists no share lock.
    open LOCK_FILE, "$urpm->{statedir}/.LOCK" or return;
    flock LOCK_FILE, $LOCK_SH|$LOCK_NB or $urpm->{fatal}(7, N("urpmi database locked"));
}
sub unlock_urpmi_db {
    my ($urpm) = @_;

    #- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
    my $LOCK_UN = 8;

    #- now everything is finished.
    system("sync");

    #- release lock on database.
    flock LOCK_FILE, $LOCK_UN;
    close LOCK_FILE;
}

sub copy_packages_of_removable_media {
    my ($urpm, $list, $sources, %options) = @_;
    my %removables;

    #- make sure everything is correct on input...
    @{$urpm->{media} || []} == @$list or return;

    #- examine if given medium is already inside a removable device.
    my $check_notfound = sub {
	my ($id, $dir, $removable) = @_;
	$dir and $urpm->try_mounting($dir, $removable);
	if (!$dir || -e $dir) {
	    foreach (values %{$list->[$id]}) {
		chomp;
		m!^(removable_?[^_:]*|file):/(.*/([^/]*))! or next;
		unless ($dir) {
		    $dir = $2;
		    $urpm->try_mounting($dir, $removable);
		}
		-r $2 or return 1;
	    }
	} else {
	    return 2;
	}
	return 0;
    };
    #- removable media have to be examined to keep mounted the one that has
    #- more package than other (size is better ?).
    my $examine_removable_medium = sub {
	my ($id, $device, $copy) = @_;
	my $medium = $urpm->{media}[$id];
	if (my ($prefix, $dir) = $medium->{url} =~ m!^(removable[^:]*|file):/(.*)!) {
	    #- the directory given does not exist or may be accessible
	    #- by mounting some other. try to figure out these directory and
	    #- mount everything necessary.
	    while ($check_notfound->($id, $dir, 'removable')) {
		$options{ask_for_medium} or $urpm->{fatal}(4, N("medium \"%s\" is not selected", $medium->{name}));
		$urpm->try_umounting($dir); system("eject", $device);
		$options{ask_for_medium}(remove_internal_name($medium->{name}), $medium->{removable}) or
		  $urpm->{fatal}(4, N("medium \"%s\" is not selected", $medium->{name}));
	    }
	    if (-e $dir) {
		while (my ($i, $url) = each %{$list->[$id]}) {
		    chomp $url;
		    my ($filepath, $filename) = $url =~ m!^(?:removable[^:]*|file):/(.*/([^/]*))! or next;
		    if (-r $filepath) {
			if ($copy) {
			    #- we should assume a possible buggy removable device...
			    #- first copy in cache, and if the package is still good, transfert it
			    #- to the great rpms cache.
			    unlink "$urpm->{cachedir}/partial/$filename";
			    if (!system("cp", "-p", "-R", $filepath, "$urpm->{cachedir}/partial") &&
				URPM::verify_rpm("$urpm->{cachedir}/partial/$filename", nosignatures => 1) !~ /NOT OK/) {
				#- now we can consider the file to be fine.
				unlink "$urpm->{cachedir}/rpms/$filename";
				rename("$urpm->{cachedir}/partial/$filename", "$urpm->{cachedir}/rpms/$filename") or
				  system("mv", "$urpm->{cachedir}/partial/$filename", "$urpm->{cachedir}/rpms/$filename");
				-r "$urpm->{cachedir}/rpms/$filename" and $sources->{$i} = "$urpm->{cachedir}/rpms/$filename";
			    }
			} else {
			    $sources->{$i} = $filepath;
			}
		    }
		    unless ($sources->{$i}) {
			#- fallback to use other method for retrieving the file later.
			$urpm->{error}(N("unable to read rpm file [%s] from medium \"%s\"", $filepath, $medium->{name}));
		    }
		}
	    } else {
		$urpm->{error}(N("medium \"%s\" is not selected", $medium->{name}));
	    }
	} else {
	    #- we have a removable device that is not removable, well...
	    $urpm->{error}(N("incoherent medium \"%s\" marked removable but not really", $medium->{name}));
	}
    };

    foreach (0..$#$list) {
	values %{$list->[$_]} or next;
	my $medium = $urpm->{media}[$_];
	#- examine non removable device but that may be mounted.
	if ($medium->{removable}) {
	    push @{$removables{$medium->{removable}} ||= []}, $_;
	} elsif (my ($prefix, $dir) = $medium->{url} =~ m!^(removable[^:]*|file):/(.*)!) {
	    chomp $dir;
	    -e $dir || $urpm->try_mounting($dir) or
	      $urpm->{error}(N("unable to access medium \"%s\"", $medium->{name})), next;
	}
    }
    foreach my $device (keys %removables) {
	#- here we have only removable device.
	#- if more than one media use this device, we have to sort
	#- needed package to copy first the needed rpm files.
	if (@{$removables{$device}} > 1) {
	    my @sorted_media = sort { values %{$list->[$a]} <=> values %{$list->[$b]} } @{$removables{$device}};

	    #- check if a removable device is already mounted (and files present).
	    if (my ($already_mounted_medium) = grep { !$check_notfound->($_) } @sorted_media) {
		@sorted_media = grep { $_ ne $already_mounted_medium } @sorted_media;
		unshift @sorted_media, $already_mounted_medium;
	    }

	    #- mount all except the biggest one.
	    foreach (@sorted_media[0 .. $#sorted_media-1]) {
		$examine_removable_medium->($_, $device, 'copy');
	    }
	    #- now mount the last one...
	    $removables{$device} = [ $sorted_media[-1] ];
	}

	#- mount the removable device, only one or the important one.
	#- if supermount is used on the device, it is preferable to copy
	#- the file instead (because it is so slooooow).
	$examine_removable_medium->($removables{$device}[0], $device,
	    urpm::sys::is_using_supermount($device) ? 'copy' : 0);
    }

    1;
}

sub download_packages_of_distant_media {
    my ($urpm, $list, $sources, $error_sources, %options) = @_;

    #- get back all ftp and http accessible rpm files into the local cache
    #- if necessary (as used by checksig or any other reasons).
    foreach (0..$#$list) {
	my %distant_sources;

	#- ignore as well medium that contains nothing about the current set of files.
	values %{$list->[$_]} or next;

	#- examine all files to know what can be indexed on multiple media.
	while (my ($i, $url) = each %{$list->[$_]}) {
	    #- it is trusted that the url given is acceptable, so the file can safely be ignored.
	    defined $sources->{$i} and next;
	    if ($url =~ /^(removable[^:]*|file):\/(.*\.rpm)$/) {
		if (-r $2) {
		    $sources->{$i} = $2;
		} else {
		    $error_sources->{$i} = $2;
		}
	    } elsif ($url =~ m|^([^:]*):/(.*/([^/]*\.rpm))$|) {
		if ($options{force_local} || $1 ne 'ftp' && $1 ne 'http') { #- only ftp and http protocol supported by grpmi.
		    $distant_sources{$i} = "$1:/$2";
		} else {
		    $sources->{$i} = "$1:/$2";
		}
	    } else {
		$urpm->{error}(N("malformed input: [%s]", $url));
	    }
	}

	#- download files from the current medium.
	if (%distant_sources) {
	    eval {
		$urpm->{log}(N("retrieving rpm files from medium \"%s\"...", $urpm->{media}[$_]{name}));
		$urpm->{sync}(
		    {
			dir => "$urpm->{cachedir}/partial",
			quiet => 0,
			verbose => $options{verbose},
			limit_rate => $options{limit_rate},
			resume => $options{resume},
			compress => $options{compress},
			callback => $options{callback},
			proxy => get_proxy($urpm->{media}[$_]{name}),
			media => $urpm->{media}[$_]{name},
		    },
		    values %distant_sources,
		);
		$urpm->{log}(N("...retrieving done"));
	    };
	    $@ and $urpm->{error}(N("...retrieving failed: %s", $@));
	    #- clean files that have not been downloaded, but keep mind there
	    #- has been problem downloading them at least once, this is
	    #- necessary to keep track of failing download in order to
	    #- present the error to the user.
	    foreach my $i (keys %distant_sources) {
		my ($filename) = $distant_sources{$i} =~ m|/([^/]*\.rpm)$|;
		if ($filename && -s "$urpm->{cachedir}/partial/$filename" &&
		    URPM::verify_rpm("$urpm->{cachedir}/partial/$filename", nosignatures => 1) !~ /NOT OK/) {
		    #- it seems the the file has been downloaded correctly and has been checked to be valid.
		    unlink "$urpm->{cachedir}/rpms/$filename";
		    rename("$urpm->{cachedir}/partial/$filename", "$urpm->{cachedir}/rpms/$filename") or
		      system("mv", "$urpm->{cachedir}/partial/$filename", "$urpm->{cachedir}/rpms/$filename");
		    -r "$urpm->{cachedir}/rpms/$filename" and $sources->{$i} = "$urpm->{cachedir}/rpms/$filename";
		}
		unless ($sources->{$i}) {
		    $error_sources->{$i} = $distant_sources{$i};
		}
	    }
	}
    }

    #- clean failed download which have succeeded.
    delete @$error_sources{keys %$sources};

    1;
}

#- prepare transaction.
sub prepare_transaction {
    my ($urpm, $set, $list, $sources, $transaction_list, $transaction_sources) = @_;

    foreach my $id (@{$set->{upgrade}}) {
	my $pkg = $urpm->{depslist}[$id];
	foreach (0..$#$list) {
	    exists $list->[$_]{$id} and $transaction_list->[$_]{$id} = $list->[$_]{$id};
	}
	exists $sources->{$id} and $transaction_sources->{$id} = $sources->{$id};
    }
}

#- extract package that should be installed instead of upgraded,
#- sources is a hash of id -> source rpm filename.
sub extract_packages_to_install {
    my ($urpm, $sources) = @_;
    my %inst;

    foreach (keys %$sources) {
	my $pkg = $urpm->{depslist}[$_] or next;
	$pkg->flag_disable_obsolete and $inst{$pkg->id} = delete $sources->{$pkg->id};
    }

    \%inst;
}

#- install logger (ala rpm)
sub install_logger {
    my ($urpm, $type, $id, $subtype, $amount, $total) = @_;
    my $pkg = defined $id && $urpm->{depslist}[$id];
    my $progress_size = 50;

    if ($subtype eq 'start') {
	$urpm->{logger_progress} = 0;
	if ($type eq 'trans') {
	    $urpm->{logger_id} ||= 0;
	    printf "%-28s", N("Preparing...");
	} else {
	    printf "%4d:%-23s", ++$urpm->{logger_id}, ($pkg && $pkg->name);
	}
    } elsif ($subtype eq 'stop') {
	if ($urpm->{logger_progress} < $progress_size) {
	    print '#' x ($progress_size - $urpm->{logger_progress});
	    print "\n";
	}
    } elsif ($subtype eq 'progress') {
	my $new_progress = $total > 0 ? int($progress_size * $amount / $total) : $progress_size;
	if ($new_progress > $urpm->{logger_progress}) {
	    print '#' x ($new_progress - $urpm->{logger_progress});
	    $urpm->{logger_progress} = $new_progress;
	    $urpm->{logger_progress} == $progress_size and print "\n";
	}
    }
}

#- install packages according to each hashes (install or upgrade).
sub install {
    my ($urpm, $remove, $install, $upgrade, %options) = @_;
    my @readmes;

    #- allow process to be forked now.
    my $pid;
    local (*CHILD_RETURNS, *ERROR_OUTPUT, $_);
    if ($options{fork}) {
	pipe(CHILD_RETURNS, ERROR_OUTPUT);
	defined($pid = fork()) or die "Can't fork: $!\n";
	if ($pid) {
	    # parent process
	    close ERROR_OUTPUT;

	    $urpm->{log}(N("using process %d for executing transaction"));
	    #- now get all errors from the child and return them directly.
	    my @l;
	    while (<CHILD_RETURNS>) {
		chomp;
		if (/^::logger_id:(\d+)/) {
		    $urpm->{logger_id} = $1;
		} else {
		    push @l, $_;
		}
	    }

	    close CHILD_RETURNS;
	    waitpid($pid, 0);
	    #- take care of return code from transaction, an error should be returned directly.
	    $? >> 8 and exit $? >> 8;

	    return @l;
	} else {
	    # child process
	    close CHILD_RETURNS;
	}
    }
    #- beware this can be a child process or the main process now...

    my $db = URPM::DB::open($urpm->{root}, !$options{test}); #- open in read/write mode unless testing installation.

    $db or $urpm->{fatal}(9, N("unable to open rpmdb"));

    my $trans = $db->create_transaction($urpm->{root});
    if ($trans) {
	$urpm->{log}(N("created transaction for installing on %s (remove=%d, install=%d, upgrade=%d)", $urpm->{root} || '/',
		       scalar(@{$remove || []}), scalar(values %$install), scalar(values %$upgrade)));
    } else {
	return N("unable to create transaction");
    }

    my ($update, @l, %file2pkg) = 0;

    foreach (@$remove) {
	if ($trans->remove($_)) {
	    $urpm->{log}(N("removing package %s", $_));
	} else {
	    $urpm->{error}(N("unable to remove package %s", $_));
	}
    }
    foreach my $mode ($install, $upgrade) {
	foreach (keys %$mode) {
	    my $pkg = $urpm->{depslist}[$_];
	    $file2pkg{$mode->{$_}} = $pkg;
	    $pkg->update_header($mode->{$_});
	    if ($trans->add($pkg, update => $update,
			    $options{excludepath} ? (excludepath => [ split ',', $options{excludepath} ]) : ())) {
		$urpm->{log}(N("adding package %s (id=%d, eid=%d, update=%d, file=%s)", scalar($pkg->fullname),
			       $_, $pkg->id, $update, $mode->{$_}));
	    } else {
		$urpm->{error}(N("unable to install package %s", $mode->{$_}));
	    }
	}
	++$update;
    }
    unless (!$options{nodeps} && (@l = $trans->check(%options)) ||
	    !$options{noorder} && (@l = $trans->order)) {
	my $fh;
	#- assume default value for some parameter.
	$options{delta} ||= 1000;
	$options{callback_open} ||= sub {
	    my ($data, $type, $id) = @_;
	    open $fh, $install->{$id} || $upgrade->{$id} or
	      $urpm->{error}(N("unable to access rpm file [%s]", $install->{$id} || $upgrade->{$id}));
	    return fileno $fh;
	};
	$options{callback_close} ||= sub {
	    my ($urpm, undef, $pkgid) = @_;
	    return unless defined $pkgid;
	    my $pkg = $urpm->{depslist}[$pkgid];
	    my $fullname = $pkg->fullname();
	    my $trtype = (grep { /$fullname/ } values %$install) ? 'install' : 'upgrade';
	    push @readmes, map { [ $_, $fullname ] } grep {
		/\bREADME(\.$trtype)?\.urpmi$/
	    } $pkg->files();
	    close $fh;
	};
	if (keys %$install || keys %$upgrade) {
	    $options{callback_inst}  ||= \&install_logger;
	    $options{callback_trans} ||= \&install_logger;
	}
	@l = $trans->run($urpm, %options);

	#- in case of error or testing, do not try to check rpmdb
	#- for packages being upgraded or not.
	unless (@l || $options{test}) {
	    #- examine the local repository to delete package which have been installed.
	    if ($options{post_clean_cache}) {
		foreach (keys %$install, keys %$upgrade) {
		    my $pkg = $urpm->{depslist}[$_];
		    $db->traverse_tag('name', [ $pkg->name ], sub {
					  my ($p) = @_;
					  $p->fullname eq $pkg->fullname or return;
					  unlink "$urpm->{cachedir}/rpms/".$pkg->filename;
				      });
		}
	    }
	}
    }

    #- now exit or return according to current status.
    if (defined $pid && !$pid) { #- child process
	print ERROR_OUTPUT "::logger_id:$urpm->{logger_id}\n"; #- allow main urpmi to know transaction numbering...
	print ERROR_OUTPUT "$_\n" foreach @l;
	close ERROR_OUTPUT;
	#- keep safe exit now (with destructor call).
	exit 0;
    } else { #- parent process
	if (@readmes) {
	    if ($urpm::args::options{X}) {
	    } else {
		foreach (@readmes) {
		    print "-" x 70, "\n", N("More information on package %s", $_->[1]), "\n";
		    print cat_($_->[0]), "-" x 70, "\n";
		}
	    }
	}
	return @l;
    }
}

#- install all files to node as remembered according to resolving done.
sub parallel_install {
    my ($urpm, $remove, $install, $upgrade, %options) = @_;
    $urpm->{parallel_handler}->parallel_install(@_);
}

#- find packages to remove.
sub find_packages_to_remove {
    my ($urpm, $state, $l, %options) = @_;

    if ($urpm->{parallel_handler}) {
	#- invoke parallel finder.
	$urpm->{parallel_handler}->parallel_find_remove($urpm, $state, $l, %options, find_packages_to_remove => 1);
    } else {
	my $db = URPM::DB::open($options{root});
	my (@m, @notfound);

	$db or $urpm->{fatal}(9, N("unable to open rpmdb"));

	if (!$options{matches}) {
	    foreach (@$l) {
		my ($n, $found);

		#- check if name-version-release may have been given.
		if (($n) = /^(.*)-[^\-]*-[^\-]*\.[^\.\-]*$/) {
		    $db->traverse_tag('name', [ $n ], sub {
					  my ($p) = @_;
					  $p->fullname eq $_ or return;
					  $urpm->resolve_rejected($db, $state, $p, removed => 1);
					  push @m, scalar $p->fullname;
					  $found = 1;
				      });
		    $found and next;
		}

		#- check if name-version-release may have been given.
		if (($n) = /^(.*)-[^\-]*-[^\-]*$/) {
		    $db->traverse_tag('name', [ $n ], sub {
					  my ($p) = @_;
					  join('-', ($p->fullname)[0..2]) eq $_ or return;
					  $urpm->resolve_rejected($db, $state, $p, removed => 1);
					  push @m, scalar $p->fullname;
					  $found = 1;
				      });
		    $found and next;
		}

		#- check if name-version may have been given.
		if (($n) = /^(.*)-[^\-]*$/) {
		    $db->traverse_tag('name', [ $n ], sub {
					  my ($p) = @_;
					  join('-', ($p->fullname)[0..1]) eq $_ or return;
					  $urpm->resolve_rejected($db, $state, $p, removed => 1);
					  push @m, scalar $p->fullname;
					  $found = 1;
				      });
		    $found and next;
		}

		#- check if only name may have been given.
		$db->traverse_tag('name', [ $_ ], sub {
				      my ($p) = @_;
				      $p->name eq $_ or return;
				      $urpm->resolve_rejected($db, $state, $p, removed => 1);
				      push @m, scalar $p->fullname;
				      $found = 1;
				  });
		$found and next;

		push @notfound, $_;
	    }
	    if (!$options{force} && @notfound && @$l > 1) {
		$options{callback_notfound} and $options{callback_notfound}->($urpm, @notfound)
		  or return ();
	    }
	}
	if ($options{matches} || @notfound) {
	    my $match = join "|", map { quotemeta } @$l;

	    #- reset what has been already found.
	    %$state = ();
	    @m = ();

	    #- search for package that matches, and perform closure again.
	    $db->traverse(sub {
			      my ($p) = @_;
			      $p->fullname =~ /$match/ or return;
			      $urpm->resolve_rejected($db, $state, $p, removed => 1);
			      push @m, scalar $p->fullname;
			  });

	    if (!$options{force} && @notfound) {
		if (@m) {
		    $options{callback_fuzzy} and $options{callback_fuzzy}->($urpm, $match, @m)
		      or return ();
		} else {
		    $options{callback_notfound} and $options{callback_notfound}->($urpm, @notfound)
		      or return ();
		}
	    }
	}

	#- check if something need to be removed.
	if ($options{callback_base} && %{$state->{rejected} || {}}) {
	    my %basepackages;

	    #- check if a package to be removed is a part of basesystem requires.
	    $db->traverse_tag('whatprovides', [ 'basesystem' ], sub {
				  my ($p) = @_;
				  $basepackages{$p->fullname} = 0;
			      });

	    foreach (grep { $state->{rejected}{$_}{removed} && !$state->{rejected}{$_}{obsoleted} } keys %{$state->{rejected}}) {
		exists $basepackages{$_} or next;
		++$basepackages{$_};
	    }

	    grep { $_ } values %basepackages and
	      $options{callback_base}->($urpm, grep { $basepackages{$_} } keys %basepackages) || return ();
	}
    }
    grep { $state->{rejected}{$_}{removed} && !$state->{rejected}{$_}{obsoleted} } keys %{$state->{rejected}};
}

#- remove packages from node as remembered according to resolving done.
sub parallel_remove {
    my ($urpm, $remove, %options) = @_;
    my $state = {};
    my $callback = sub { $urpm->{fatal}(1, "internal distributed remove fatal error") };
    $urpm->{parallel_handler}->parallel_find_remove($urpm, $state, $remove, %options,
						    callback_notfound => undef,
						    callback_fuzzy => $callback,
						    callback_base => $callback,
						   );
}

#- misc functions to help finding ask_unselect and ask_remove elements with their reasons translated.
sub unselected_packages {
    my (undef, $state) = @_;
    grep { $state->{rejected}{$_}{backtrack} } keys %{$state->{rejected} || {}};
}

sub translate_why_unselected {
    my (undef, $state, @l) = @_;

    map { my $rb = $state->{rejected}{$_}{backtrack};
	my @froms = keys %{$rb->{closure} || {}};
	my @unsatisfied = @{$rb->{unsatisfied} || []};
	my $s = join ", ", (
	    (map { N("due to missing %s", $_) } @froms),
	    (map { N("due to unsatisfied %s", $_) } @unsatisfied),
	    $rb->{promote} && !$rb->{keep} ? N("trying to promote %s", join(", ", @{$rb->{promote}})) : @{[]},
	    $rb->{keep} ? N("in order to keep %s", join(", ", @{$rb->{keep}})) : @{[]},
	);
	$_ . ($s ? " ($s)" : '');
    } @l;
}

sub removed_packages {
    my (undef, $state) = @_;
    grep {
	$state->{rejected}{$_}{removed} && !$state->{rejected}{$_}{obsoleted}
    } keys %{$state->{rejected} || {}};
}

sub translate_why_removed {
    my ($urpm, $state, @l) = @_;
    map {
	my ($from) = keys %{$state->{rejected}{$_}{closure}};
	my ($whyk) = keys %{$state->{rejected}{$_}{closure}{$from}};
	my ($whyv) = $state->{rejected}{$_}{closure}{$from}{$whyk};
	my $frompkg = $urpm->search($from, strict_fullname => 1);
	my $s;
	for ($whyk) {
	    /old_requested/ and
	    $s .= N("in order to install %s", $frompkg ? scalar $frompkg->fullname : $from);
	    /unsatisfied/ and do {
		foreach (@$whyv) {
		    $s and $s .= ', ';
		    if (/([^\[\s]*)(?:\[\*\])?(?:\[|\s+)([^\]]*)\]?$/ && $2 ne '*') {
			$s .= N("due to unsatisfied %s", "$1 $2");
		    } else {
			$s .= N("due to missing %s", $_);
		    }
		}
	    };
	    /conflicts/ and
	    $s .= N("due to conflicts with %s", $whyv);
	    /unrequested/ and
	    $s .= N("unrequested");
	}
	#- now insert the reason if available.
	$_ . ($s ? " ($s)" : '');
    } @l;
}

sub check_sources_signatures {
    my ($urpm, $sources_install, $sources, %options) = @_;
    my ($medium, %invalid_sources);

    foreach my $id (sort { $a <=> $b } keys %$sources_install, keys %$sources) {
	my $filepath = $sources_install->{$id} || $sources->{$id};
	my $verif = URPM::verify_rpm($filepath);

	if ($verif =~ /NOT OK/) {
	    $invalid_sources{$filepath} = N("Invalid signature (%s)", $verif);
	} else {
	    unless ($medium &&
		defined $medium->{start} && $medium->{start} <= $id &&
		defined $medium->{end} && $id <= $medium->{end})
	    {
		$medium = undef;
		foreach (@{$urpm->{media}}) {
		    defined $_->{start} && $_->{start} <= $id
			&& defined $_->{end} && $id <= $_->{end}
			and $medium = $_, last;
		}
	    }
	    #- check whether verify-rpm is specifically disabled for this medium
	    $medium && defined $medium->{'verify-rpm'} && !$medium->{'verify-rpm'}
		and next;

	    my $key_ids = $medium && $medium->{'key-ids'} || $urpm->{options}{'key-ids'};
	    #- check that the key ids of the medium match the key ids of the package.
	    if ($key_ids) {
		my $valid_ids = 0;
		my $invalid_ids = 0;

		foreach my $key_id ($verif =~ /#(\S+)/g) {
		    if (grep { hex($_) == hex($key_id) } split /[,\s]+/, $key_ids) {
			++$valid_ids;
		    } else {
			++$invalid_ids;
		    }
		}

		if ($invalid_ids) {
		    $invalid_sources{$filepath} = N("Invalid Key ID (%s)", $verif);
		} elsif (!$valid_ids) {
		    $invalid_sources{$filepath} = N("Missing signature (%s)", $verif);
		}
	    }
	    #- invoke check signature callback.
	    $options{callback} and $options{callback}->(
		$urpm, $filepath, %options,
		id => $id,
		verif => $verif,
		why => $invalid_sources{$filepath},
	    );
	}
    }

    map { ($options{basename} ? basename($_) : $_) . ($options{translate} ? ": $invalid_sources{$_}" : "") }
      sort keys %invalid_sources;
}

#- get reason of update for packages to be updated
#- use all update medias if none given
sub get_updates_description {
    my ($urpm, @update_medias) = @_;
    my %update_descr;
    my ($cur, $section);

    @update_medias or @update_medias = grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}};

    foreach (map { cat_("$urpm->{statedir}/descriptions.$_->{name}"), '%package dummy' } @update_medias) {
	/^%package (.+)/ and do {
	    exists $cur->{importance} && !member($cur->{importance}, qw(security bugfix)) and $cur->{importance} = 'normal';
	    $update_descr{$_} = $cur foreach @{$cur->{pkgs}};
	    $cur = {};
	    $cur->{pkgs} = [ split /\s/, $1 ];
	    $section = 'pkg';
	    next;
	};
	/^Updated: (.+)/ && $section eq 'pkg' and $cur->{updated} = $1;
	/^Importance: (.+)/ && $section eq 'pkg' and $cur->{importance} = $1;
	/^%pre/ and do { $section = 'pre'; next };
	/^%description/ and do { $section = 'description'; next };
	$section eq 'pre' and $cur->{pre} .= $_;
	$section eq 'description' and $cur->{description} .= $_;
    }
    \%update_descr;
}

1;

__END__

=head1 NAME

urpm - Mandrakesoft perl tools to handle the urpmi database

=head1 SYNOPSYS

    require urpm;

    my $urpm = new urpm;
    $urpm->read_config();
    $urpm->add_medium('medium_ftp',
                      'ftp://ftp.mirror/pub/linux/distributions/mandrake-devel/cooker/i586/Mandrake/RPMS',
                      'synthesis.hdlist.cz',
                      update => 0);
    $urpm->add_distrib_media('stable', 'removable://mnt/cdrom',
                             update => 1);
    $urpm->select_media('contrib', 'update');
    $urpm->update_media(%options);
    $urpm->write_config();

    my $urpm = new urpm;
    $urpm->read_config(nocheck_access => $uid > 0);
    foreach (grep { !$_->{ignore} } @{$urpm->{media} || []}) {
        $urpm->parse_synthesis($_);
    }
    if (@files) {
        push @names, $urpm->register_rpms(@files);
    }
    $urpm->relocate_depslist_provides();

    my %packages;
    @names and $urpm->search_packages(\%packages, [ @names],
                                      use_provides => 1);
    if ($auto_select) {
        my (%to_remove, %keep_files);

        $urpm->select_packages_to_upgrade('', \%packages,
                                          \%to_remove, \%keep_files,
                                          use_parsehdlist => $complete);
    }
    $urpm->filter_packages_to_upgrade(\%packages,
                                      $ask_choice);
    $urpm->deselect_unwanted_packages(\%packages);

    my ($local_sources, $list) = $urpm->get_source_packages(\%packages);
    my %sources = $urpm->download_source_packages($local_sources,
                                                  $list,
                                                  'force_local',
                                                  $ask_medium_change);
    my @rpms_install = grep { $_ !~ /\.src.\.rpm/ } values %{
                         $urpm->extract_packages_to_install(\%sources)
                       || {}};
    my @rpms_upgrade = grep { $_ !~ /\.src.\.rpm/ } values %sources;


=head1 DESCRIPTION

C<urpm> is used by urpmi executables to manipulate packages and media
on a Mandrakelinux distribution.

=head1 SEE ALSO

perl-URPM (obsolete rpmtools) package is used to manipulate at a lower
level hdlist and rpm files.

=head1 COPYRIGHT

Copyright (C) 2000-2004 Mandrakesoft <fpons@mandrakesoft.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

=cut
n class="hl esc">\n" "Mageia and its suppliers and licensors reserves their rights to modify or " "adapt the Software \n" "Products, as a whole or in parts, by all means and for all purposes.\n" "\"Mageia\", \"Mageia\" and associated logos are trademarks of Mageia \n" "\n" "\n" "5. Governing Laws \n" "\n" "If any portion of this agreement is held void, illegal or inapplicable by a " "court judgment, this \n" "portion is excluded from this contract. You remain bound by the other " "applicable sections of the \n" "agreement.\n" "The terms and conditions of this License are governed by the Laws of " "France.\n" "All disputes on the terms of this license will preferably be settled out of " "court. As a last \n" "resort, the dispute will be referred to the appropriate Courts of Law of " "Paris - France.\n" "For any question on this document, please contact Mageia." msgstr "" "Johdanto\n" "\n" "HUOM!! Tämä on vapaasti suomennettu teksti Mageia -jakelun\n" "lisenssiehdoista. Alkuperäinen teksti löytyy tämän sivun lopusta.\n" "\n" "Käyttöjärjestelmään ja muihin Mageia -jakelun eri osiin viitataan\n" "tästä eteenpäin nimellä \"Ohjelmisto\". Ohjelmisto sisältää, mutta ei " "rajoitu\n" "ainoastaan niihin, pakettien yhdistelmät, menetelmät, säännöt ja\n" "dokumentaation, jotka kuuluvat käyttöjärjestelmään sekä Mageia\n" "-jakeluun kuuluvat komponentit.\n" "\n" "\n" "\n" "1. Käyttöoikeussopimus (\"Lisenssi\")\n" "\n" "\n" "Ole hyvä ja lue tämä dokumentti huolellisesti. Tämä dokumentti on Lisenssi-\n" "sopimus sinun ja Mageia:n välillä ja koskee Ohjelmistoa.\n" "Asentamalla, kopioimalla tai käyttämällä Ohjelmistoa millä tavalla tahansa,\n" "annat nimenomaisen hyväksynnän ja suostut noudattamaan tämän Lisenssin\n" "sääntöjä ja ehtoja. Jos et suostu johonkin osaan tästä Lisenssistä,\n" "sinulla ei ole lupaa asentaa, kopioida tai käyttää tätä Ohjelmistoa. Mitään\n" "yritystä asentaa, kopioida tai käyttää Ohjelmistoa tavalla, joka ei ole " "tämän\n" "Lisenssin sääntöjen ja ehtojen mukainen, ei hyväksytä ja sen kaltaiset\n" "yritykset päättävät oikeutesi tämän Lisenssin alla välittömästi. Lisenssin\n" "päättyessä sinun pitää välittömästi tuhota kaikki Ohjelmiston kopiot.\n" "\n" "\n" "\n" "2. Rajoitettu takuu\n" "\n" "\n" "Ohjelmisto ja sen mukana seuraavat dokumentaatiot tarjotaan sellaisenaan,\n" "ilman mitään takuita, voimassa olevan lain rajojen sisällä. Sikäli kuin\n" "takuuta ei voimassa olevan lain mukaan voi kiistää tai rajoittaa, Mageia S." "A. ei\n" "missään nimessä ole vastuussa erikoisista, odottamattomista, välittömistä\n" "tai välillisistä vahingoista (sisältäen ilman rajoituksia vahingot " "menetetystä\n" "työstä, työn keskeytyksestä, taloudellisesta tappiosta, laillisista\n" "kustannuksista ja sakoista johtuen tuomioistuimen päätöksestä, tai minkä\n" "tahansa muun merkittävän tappion takia) jotka syntyvät käytöstä tai\n" "kyvyttömyydestä käyttää Ohjelmistoa, vaikka Mageia:lle olisi\n" "tiedotettu tällaisen vahingon mahdollisuuden tai tapahtuman olemassaolosta.\n" "\n" "\n" "RAJOITETTU VASTUU JOKA LIITTYY KIELLETTYJEN OHJELMIEN\n" "KÄYTTÖÖN TAI HALLUSSAPITOON JOISSAKIN MAISSA\n" "\n" "\n" "Sikäli kuin takuuta ei voimassa olevan lain mukaan voi kiistää tai\n" "rajoittaa, Mageia tai sen jakelijat eivät missään nimessä ole\n" "vastuussa erikoisista, odottamattomista, välittömistä tai välillisistä\n" "vahingoista (sisältäen ilman rajoituksia vahingot menetetystä työstä,\n" "työn keskeytyksestä, taloudellisesta tappiosta, laillisista kustannuksista\n" "ja sakoista johtuen tuomioistuimen päätöksestä, tai minkä tahansa muun\n" "merkittävän tappion takia), jotka johtuvat ohjelmistokomponenttien\n" "hallussapidosta tai käytöstä tai jotka johtuvat ohjelmistokomponenttien\n" "lataamisesta joltakin Mageiain sivustolta, jotka ovat kiellettyjä tai\n" "rajoitettuja joissakin maissa paikallisen lain voimalla.\n" "\n" "Tämä rajoitettu vastuu koskee, muttei rajoitu niihin, vahvaa salausta\n" "käyttäviä komponentteja jotka kuuluvat Ohjelmistoon.\n" "Kuitenkin, koska joitakin oikeusalueet eivät salli vastuun poissulkeminen\n" "tai rajoittaminen tahallisista tai tahottomista vahingoista, yllä oleva\n" "rajoitus voi olla soveltamaton sinulle. \n" "\n" "\n" "\n" "3. GPL ja samankaltaiset lisenssit\n" "\n" "\n" "Ohjelmisto koostuu komponenteista, jotka ovat eri henkilöiden tai tahojen\n" "luomia. \n" "Suurimpaan osaan näistä komponenteista sovelletaan GNU General\n" "Public License:ä (Yleinen Julkinen Lisenssi), tästä eteenpäin \"GPL\" tai " "muiden\n" "sen kaltaisten lisenssien ehtoja ja sääntöjä. Suurin osa näistä " "lisensseistä\n" "sallii sinun kopioida, sovittaa ja levittää eteenpäin komponentteja joita " "ne\n" "koskevat. Ole hyvä ja lue jokaisen komponentin lisenssin ehdot ja säännöt\n" "ennen kuin käytät sitä. Jokainen kysymys koskien komponentin lisenssiä\n" "tulisi ohjata komponentin tekijälle Mageiain sijasta. Mageia:n\n" "tekemiin ohjelmiin sovelletaan GPL-lisenssiä. Mageia:n tekemiin\n" "dokumentaatioihin sovelletaan erillistä lisenssiä. Lue dokumentaatiota\n" "saadaksesi lisää tietoa.\n" "\n" "\n" "\n" "4. Henkisten omaisuuksien oikeudet\n" "\n" "\n" "Kaikki oikeudet Ohjelmiston komponentteihin kuuluvat niiden tekijöille,\n" "ja ne ovat suojattuja älyllisten omaisuuksien- ja kopiointisuojalailla,\n" "jotka koskevat ohjelmistoja. Mageia pidättää oikeuden muokata\n" "tai sovittaa Ohjelmistoa, joko kokonaan tai osittain, kaikilla tavoilla\n" "jokaiseen tarpeeseen. \"Mageia\", \"Mageia\" ja kaikki niihin\n" "liittyvät logot ovat Mageia:n rekisteröityjä tavaramerkkejä.\n" "\n" "\n" "\n" "5. Sovellettava laki.\n" "\n" "\n" "Jos ilmenee, että jokin osa tästä sopimuksesta on mitätön, laiton tai\n" "täytäntöönpanokelvoton, kyseinen osa poistetaan sopimuksesta.\n" "Sopimus säilyy muilta osin pätevänä ja täytäntöönpanokelpoisena\n" "ehtojensa mukaisesti. Tämän sopimuksen ehtoja ja sääntöjä sovelletaan\n" "Ranskan lain mukaan. Kaikki kiistat tämän Lisenssin ehdoista pyritään\n" "selvittämään tuomioistuimen ulkopuolella. Viimeisenä vaihtoehtona\n" "kiista luovutetaan soveltuvaan tuomioistuimeen ratkaistavaksi Pariisissa,\n" "Ranskassa.\n" "\n" "Jos teillä on kysymyksiä tästä sopimuksesta, olkaa hyvä ja ottakaa yhteyttä\n" "Mageia:iin.\n" "\n" "\n" "\n" "\n" "ALKUPERÄINEN ENGLANNINKIELINEN TEKSTI:\n" "\n" "\n" "\n" "Introduction\n" "\n" "The operating system and the different components available in the\n" "Mageia distribution shall be called the \"Software Products\"\n" "hereafter. The Software Products include, but are not restricted to,\n" "the set of programs, methods, rules and documentation related to\n" "the operating system and the different components of the Mageia\n" "Linux distribution, and any applications distributed with these products\n" "provided by Mageia's licensors or suppliers.\n" "\n" "\n" "1. License Agreement\n" "\n" "Please read this document carefully. This document is a license agreement\n" "between you and Mageia which applies to the Software Products.\n" "By installing, duplicating or using any of the Software Products in any " "manner,\n" "you explicitly accept and fully agree to conform to the terms and " "conditions\n" "of this License. \n" "If you disagree with any portion of the License, you are not allowed to " "install,\n" "duplicate or use the Software Products. Any attempt to install, duplicate " "or\n" "use the Software Products in a manner which does not comply with the terms\n" "and conditions of this License is void and will terminate your rights under " "this \n" "License. Upon termination of the License, you must immediately destroy all\n" "copies of the Software Products.\n" "\n" "\n" "2. Limited Warranty\n" "\n" "The Software Products and attached documentation are provided \"as is\",\n" "with no warranty, to the extent permitted by law. Neither Mageia\n" "nor its licensors or suppliers will, in any circumstances and to the extent\n" "permitted by law, be liable for any special, incidental, direct or indirect\n" "damages whatsoever (including without limitation damages for loss of\n" "business, interruption of business, financial loss, legal fees and " "penalties\n" "resulting from a court judgment, or any other consequential loss) arising\n" "out of the use or inability to use the Software Products, even if Mageia\n" "S.A. or its licensors or suppliers have been advised of the possibility or\n" "occurrence of such damages.\n" "\n" "LIMITED LIABILITY LINKED TO POSSESSING OR USING PROHIBITED SOFTWARE\n" "IN SOME COUNTRIES\n" "\n" "To the extent permitted by law, neither Mageia nor its licensors, suppliers\n" "or distributors will, in any circumstances, be liable for any special, " "incidental,\n" "direct or indirect damages whatsoever (including without limitation damages\n" "for loss of business, interruption of business, financial loss, legal fees " "and\n" "penalties resulting from a court judgment, or any other consequential loss)\n" "arising out of the possession and use of software components or arising out\n" "of downloading software components from one of Mageia sites which\n" "are prohibited or restricted in some countries by local laws.This limited " "liability\n" "applies to, but is not restricted to, the strong cryptography components " "included\n" "in the Software Products.\n" "However, because some jurisdictions do not allow the exclusion or " "limitation\n" "or liability for consequential or incidental damages, the above limitation " "may not\n" "apply to you.\n" "\n" "\n" "3. The GPL License and Related Licenses\n" "\n" "The Software Products consist of components created by different persons or\n" "entities. Most of these licenses allow you to use, duplicate, adapt or \n" "redistribute the components which they cover. Please read carefully the " "terms\n" "and conditions of the license agreement for each component before using any\n" "component. Any question on a component license should be addressed to the\n" "component licensor or supplier and not to Mageia.\n" "The programs developed by Mageia are governed by the GPL License.\n" "Documentation written by Mageia is governed by a specific license.\n" "Please refer to the documentation for further details.\n" "\n" "\n" "4. Intellectual Property Rights\n" "\n" "All rights to the components of the Software Products belong to their " "respective\n" "authors and are protected by intellectual property and copyright laws " "applicable\n" "to software programs.Mageia and its suppliers and licensors reserves their\n" "rights to modify or adapt the Software Products, as a whole or in parts, by " "all\n" "means and for all purposes. \"Mageia\", \"Mageia\" and associated logos\n" "are trademarks of Mageia\n" "\n" "\n" "5. Governing Laws \n" "\n" "If any portion of this agreement is held void, illegal or inapplicable by a " "court\n" "judgment, this portion is excluded from this contract. You remain bound by " "the\n" "other applicable sections of the agreement. The terms and conditions of " "this\n" "License are governed by the Laws of France. All disputes on the terms of " "this\n" "license will preferably be settled out of court. As a last resort, the " "dispute will\n" "be referred to the appropriate Courts of Law of Paris - France.\n" "For any question on this document, please contact Mageia" #: messages.pm:93 #, c-format msgid "" "Warning: Free Software may not necessarily be patent free, and some Free\n" "Software included may be covered by patents in your country. For example, " "the\n" "MP3 decoders included may require a licence for further usage (see\n" "http://www.mp3licensing.com for more details). If you are unsure if a " "patent\n" "may be applicable to you, check your local laws." msgstr "" "Varoitus: Vapaa Ohjelmisto ei välttämättä ole patenttivapaa ja jotkin\n" "jakelussa olevat paketit saattavat olla patenttien alaisuudessa maassasi.\n" "Esimerkiksi mukana olevat MP3-purkajat voivat vaatia lisenssin, jotta saat\n" "käyttää sitä jatkuvasti (katso http://www.mp3licensing.com saadaksesi\n" "lisätietoa). Jos olet epävarma siitä, koskeeko jokin patentti sinua,\n" "selvitä asiaa paikallisten viranomaisten kanssa.\n" "\n" "\n" "Warning: Free Software may not necessarily be patent free, and some Free\n" "Software included may be covered by patents in your country. For example,\n" "the MP3 decoders included may require a licence for further usage (see\n" "http://www.mp3licensing.com for more details). If you are unsure if a " "patent\n" "may be applicable to you, check your local laws." #. -PO: keep the double empty lines between sections, this is formatted a la LaTeX #: messages.pm:102 #, c-format msgid "" "Congratulations, installation is complete.\n" "Remove the boot media and press Enter to reboot.\n" "\n" "\n" "For information on fixes which are available for this release of Mageia,\n" "consult the Errata available from:\n" "\n" "\n" "%s\n" "\n" "\n" "Information on configuring your system is available in the post\n" "install chapter of the Official Mageia User's Guide." msgstr "" "Onnittelut, asennus on valmis.\n" "Poista asennusmedia ja käynnistä kone uudelleen painamalla Enter.\n" "\n" "\n" "Asennettuun Mageiain versioon saatavilla olevat korjaukset ja\n" "korjattujen virheiden lista löytyy osoitteesta:\n" "\n" "\n" "%s\n" "\n" "\n" "Järjestelmän asettamisesta löytyy tietoja virallisen Mageiain\n" "käyttäjäoppaan jälkiasennuskappaleesta." #: modules/interactive.pm:19 #, c-format msgid "This driver has no configuration parameter!" msgstr "Ajurilla ei ole muutettavia asetusparametreja" #: modules/interactive.pm:22 #, c-format msgid "Module configuration" msgstr "Moduulien asetukset" #: modules/interactive.pm:22 #, c-format msgid "You can configure each parameter of the module here." msgstr "Muokkaa moduulin parametreja." #: modules/interactive.pm:64 #, c-format msgid "Found %s interfaces" msgstr "Löydetty %s liitäntää" #: modules/interactive.pm:65 #, c-format msgid "Do you have another one?" msgstr "Onko tietokoneessa muita?" #: modules/interactive.pm:66 #, c-format msgid "Do you have any %s interfaces?" msgstr "Onko koneessa liitäntää %s?" #: modules/interactive.pm:72 #, c-format msgid "See hardware info" msgstr "Katso laitteistotietoja" #: modules/interactive.pm:83 #, c-format msgid "Installing driver for USB controller" msgstr "Asennetaan ajuria USB-ohjaimelle" #: modules/interactive.pm:84 #, c-format msgid "Installing driver for firewire controller %s" msgstr "Asennetaan ajuria FireWire-ohjaimelle %s" #: modules/interactive.pm:85 #, c-format msgid "Installing driver for hard disk drive controller %s" msgstr "Asennetaan ajuria kiintolevyohjaimelle %s" #: modules/interactive.pm:86 #, c-format msgid "Installing driver for ethernet controller %s" msgstr "Asennetaan ajuria verkkokortille %s" #. -PO: the first %s is the card type (scsi, network, sound,...) #. -PO: the second is the vendor+model name #: modules/interactive.pm:97 #, c-format msgid "Installing driver for %s card %s" msgstr "Asennetaan ajuria %s-ohjaimelle \"%s\"" #: modules/interactive.pm:100 #, c-format msgid "Configuring Hardware" msgstr "Määritellään laitteistoa" #: modules/interactive.pm:111 #, c-format msgid "" "You may now provide options to module %s.\n" "Note that any address should be entered with the prefix 0x like '0x123'" msgstr "" "Moduulin %s asetukset voidaan nyt määritellä.\n" "Huomaa, että osoite täytyy määrittää etuliitteellä '0x' varustettuna, esim. " "0x123." #: modules/interactive.pm:117 #, c-format msgid "" "You may now provide options to module %s.\n" "Options are in format ``name=value name2=value2 ...''.\n" "For instance, ``io=0x300 irq=7''" msgstr "" "Moduulille %s voidaan nyt antaa lisäasetuksia.\n" "Asetukset ovat muotoa \"nimi=arvo nimi2=arvo2 ...\".\n" "Esim. \"io=0x300 irq=7\"" #: modules/interactive.pm:119 #, c-format msgid "Module options:" msgstr "Moduulin asetukset:" #. -PO: the %s is the driver type (scsi, network, sound,...) #: modules/interactive.pm:132 #, c-format msgid "Which %s driver should I try?" msgstr "Mitä %s-ajuria kokeillaan?" #: modules/interactive.pm:141 #, c-format msgid "" "In some cases, the %s driver needs to have extra information to work\n" "properly, although it normally works fine without them. Would you like to " "specify\n" "extra options for it or allow the driver to probe your machine for the\n" "information it needs? Occasionally, probing will hang a computer, but it " "should\n" "not cause any damage." msgstr "" "Joissakin tapauksissa %s-ajuri tarvitsee lisätietoja toimiakseen kunnolla,\n" "joskin tavallisesti se toimii hyvin ilmankin. Annetaanko ajurille " "lisämääreitä\n" "vai annetaanko sen itse etsiä tarvitsemansa tiedot? Joskus haku voi\n" "jumiuttaa tietokoneen, mutta sen ei pitäisi aiheuttaa vahinkoa." #: modules/interactive.pm:145 #, c-format msgid "Autoprobe" msgstr "Automaattitunnistus" #: modules/interactive.pm:145 #, c-format msgid "Specify options" msgstr "Lisäasetukset" #: modules/interactive.pm:157 #, c-format msgid "" "Loading module %s failed.\n" "Do you want to try again with other parameters?" msgstr "" "Moduulin %s lataaminen epäonnistui.\n" "Yritetäänkö muilla asetuksilla?" #: mygtk2.pm:1540 mygtk2.pm:1541 #, c-format msgid "Password is trivial to guess" msgstr "Salasana on yksinkertainen arvata" #: mygtk2.pm:1542 #, c-format msgid "Password should be resistant to basic attacks" msgstr "Salasanan pitäisi kestää normaalit hyökkäykset" #: mygtk2.pm:1543 mygtk2.pm:1544 #, c-format msgid "Password seems secure" msgstr "Salasana vaikuttaa turvalliselta" #: partition_table.pm:428 #, c-format msgid "mount failed: " msgstr "Liittäminen epäonnistui: " #: partition_table.pm:540 #, c-format msgid "Extended partition not supported on this platform" msgstr "Laajennettua osiotyyppiä ei tueta tässä ympäristössä" #: partition_table.pm:558 #, c-format msgid "" "You have a hole in your partition table but I cannot use it.\n" "The only solution is to move your primary partitions to have the hole next " "to the extended partitions." msgstr "" "Osiotaulussa on reikä, eikä sitä voida käyttää.\n" "Ainoa ratkaisu on siirtää ensisijaisia osioita siten, että reikä on ennen " "laajennettuja osioita" #: partition_table/raw.pm:288 #, c-format msgid "" "Something bad is happening on your hard disk drive. \n" "A test to check the integrity of data has failed. \n" "It means writing anything on the disk will end up with random, corrupted " "data." msgstr "" "Kiintolevylle on tapahtunut jotakin kamalaa.\n" "Tiedon oikeellisuuden tarkistus epäonnistui.\n" "Tämä tarkoittaa, että kaikki asemalle kirjoitettu\n" "tieto muuttuu tunnistamattomaksi." #: pkgs.pm:252 pkgs.pm:255 pkgs.pm:268 #, c-format msgid "Unused packages removal" msgstr "Käyttämättömien pakettien poisto" #: pkgs.pm:252 #, c-format msgid "Finding unused hardware packages..." msgstr "Etsitään käyttämättömiä laitteisto-paketteja..." #: pkgs.pm:255 #, c-format msgid "Finding unused localization packages..." msgstr "Etsitään käyttämättömiä kieli-paketteja..." #: pkgs.pm:269 #, c-format msgid "" "We have detected that some packages are not needed for your system " "configuration." msgstr "" "Asennusohjelma havaitsi, että osa asennetuista paketeista on tarpeettomia." #: pkgs.pm:270 #, c-format msgid "We will remove the following packages, unless you choose otherwise:" msgstr "Seuraavat paketit poistetaan:" #: pkgs.pm:273 pkgs.pm:274 #, c-format msgid "Unused hardware support" msgstr "Käyttämättömät laitteistopaketit" #: pkgs.pm:277 pkgs.pm:278 #, c-format msgid "Unused localization" msgstr "Käyttämättömät kieli-paketit" #: raid.pm:42 #, c-format msgid "Cannot add a partition to _formatted_ RAID %s" msgstr "_Alustetulle_ RAID:lle (%s) ei voitu lisätä osiota." #: raid.pm:165 #, c-format msgid "Not enough partitions for RAID level %d\n" msgstr "RAID-tasolle %d ei löydy tarpeeksi käytettäviä osioita\n" #: scanner.pm:96 #, c-format msgid "Could not create directory /usr/share/sane/firmware!" msgstr "Hakemistoa /usr/share/sane/firmware ei voitu luoda!" #: scanner.pm:107 #, c-format msgid "Could not create link /usr/share/sane/%s!" msgstr "Linkkiä /usr/share/sane/%s ei voitu luoda!" #: scanner.pm:114 #, c-format msgid "Could not copy firmware file %s to /usr/share/sane/firmware!" msgstr "" "Firmware-tiedostoa %s ei voitu kopioida kohteeseen /usr/share/sane/firmware" #: scanner.pm:121 #, c-format msgid "Could not set permissions of firmware file %s!" msgstr "Firmware-tiedoston %s oikeuksia ei voitu asettaa!" #: scanner.pm:200 #, c-format msgid "Scannerdrake" msgstr "ScannerDrake" #: scanner.pm:201 #, c-format msgid "Could not install the packages needed to share your scanner(s)." msgstr "Kuvanlukijan jakamiseen tarvittavia paketteja ei voitu asentaa." #: scanner.pm:202 #, c-format msgid "Your scanner(s) will not be available for non-root users." msgstr "Kuvanlukija ei ole käytettävissä muille kuin pääkäyttäjälle." #: security/help.pm:11 #, c-format msgid "Accept bogus IPv4 error messages." msgstr "Hyväksy virheelliset IPv4-virheviestit." #: security/help.pm:13 #, c-format msgid "Accept broadcasted icmp echo." msgstr "Hyväksy yleislähetysosoitteeseen (broadcast) lähetetyt Ping-viestit" #: security/help.pm:15 #, c-format msgid "Accept icmp echo." msgstr "Hyväksy Ping-viestit\"." #: security/help.pm:17 #, c-format msgid "Allow autologin." msgstr "Salli automaattinen kirjautuminen." #. -PO: here "ALL" is a value in a pull-down menu; translate it the same as "ALL" is #: security/help.pm:21 #, c-format msgid "" "If set to \"ALL\", /etc/issue and /etc/issue.net are allowed to exist.\n" "\n" "If set to \"None\", no issues are allowed.\n" "\n" "Else only /etc/issue is allowed." msgstr "" "Jos valittu asetus \"KAIKKI\", tiedostojen /etc/issue ja /etc/issue.net " "olemassaolo sallitaan.\n" "\n" "Jos valittu asetus \"EI\", kummankaan tiedoston olomassaoloa ei sallita.\n" "\n" "Muutoin sallitaan ainoastaan tiedosto /etc/issue." #: security/help.pm:27 #, c-format msgid "Allow reboot by the console user." msgstr "Salli konsolikäyttäjän käynnistää kone uudelleen." #: security/help.pm:29 #, c-format msgid "Allow remote root login." msgstr "Salli pääkäyttäjän etäkirjautuminen." #: security/help.pm:31 #, c-format msgid "Allow direct root login." msgstr "Salli pääkäyttäjän kirjautuminen paikallisesti." #: security/help.pm:33 #, c-format msgid "" "Allow the list of users on the system on display managers (kdm and gdm)." msgstr "Salli käyttäjien listaus kirjautumisikkunassa (KDM ja GDM)." #: security/help.pm:35 #, c-format msgid "" "Allow to export display when\n" "passing from the root account to the other users.\n" "\n" "See pam_xauth(8) for more details.'" msgstr "" "Salli näytön edelleenohjaus,\n" "kun siirrytään root-tililtä muille tileille.\n" "\n" "Lisätietoja komennolla \"man pam_xauth\"." #: security/help.pm:40 #, c-format msgid "" "Allow X connections:\n" "\n" "- \"All\" (all connections are allowed),\n" "\n" "- \"Local\" (only connection from local machine),\n" "\n" "- \"None\" (no connection)." msgstr "" "Salli X-yhteydet:\n" "\n" "- \"KAIKKI\" (kaikki yhteydet sallitaan),\n" "\n" "- \"PAIKALLINEN\" (ainoastaan paikalliset yhteydet),\n" "\n" "- \"EI\" (ei yhteyttä)." #: security/help.pm:48 #, c-format msgid "" "The argument specifies if clients are authorized to connect\n" "to the X server from the network on the tcp port 6000 or not." msgstr "" "Parametri määrittää, sallitaanko asiakkaiden yhdistää X-palvelimeen\n" "TCP-porttiin 6000." #. -PO: here "ALL", "Local" and "None" are values in a pull-down menu; translate them the same as they're #: security/help.pm:53 #, c-format msgid "" "Authorize:\n" "\n" "- all services controlled by tcp_wrappers (see hosts.deny(5) man page) if " "set to \"ALL\",\n" "\n" "- only local ones if set to \"Local\"\n" "\n" "- none if set to \"None\".\n" "\n" "To authorize the services you need, use /etc/hosts.allow (see hosts.allow" "(5))." msgstr "" "Salli:\n" "\n" "- kaikki palvelut joita ohjataan tcp_wrappers:ien kautta (katso hosts.deny" "(5)) jos valittuna on asetus \"KAIKKI\",\n" "\n" "- vain paikalliset palvelut, jos valittuna on asetus \"PAIKALLINEN\",\n" "\n" "- ei mitään palvelua, jos valittuna on asetus \"EI\". \n" "\n" "Salliaksesi tarvitsemasi palvelut, käytä /etc/hosts.allow (katso hosts.allow" "(5))." #: security/help.pm:63 #, c-format msgid "" "If SERVER_LEVEL (or SECURE_LEVEL if absent)\n" "is greater than 3 in /etc/security/msec/security.conf, creates the\n" "symlink /etc/security/msec/server to point to\n" "/etc/security/msec/server.<SERVER_LEVEL>.\n" "\n" "The /etc/security/msec/server is used by chkconfig --add to decide to\n" "add a service if it is present in the file during the installation of\n" "packages." msgstr "" "Jos SERVER_LEVEL (tai SECURE_LEVEL sen puuttuessa) on määritelty\n" "tiedostossa /etc/security/msec/security.conf korkeammaksi kuin 3 (kolme),\n" "luodaan linkki tiedostosta /etc/security/msec/server\n" "tiedostoon /etc/security/msec/server.<SERVER_LEVEL>.\n" "\n" "Komento \"chkconfig --add\" käyttää tiedostoa /etc/security/msec/server\n" "päättääkseen lisätäänkö palvelu asentamisen yhteydessä." #: security/help.pm:72 #, c-format msgid "" "Enable crontab and at for users.\n" "\n" "Put allowed users in /etc/cron.allow and /etc/at.allow (see man at(1)\n" "and crontab(1))." msgstr "" "Salli crontab ja at käyttäjille.\n" "\n" "Lisää sallitut käyttäjät tiedostoihin /etc/cron.allow ja /etc/at.allow.\n" "Lisätietoa komennoilla \"man at\" ja \"man crontab\"." #: security/help.pm:77 #, c-format msgid "Enable syslog reports to console 12" msgstr "Ota käyttöön syslog-raporttien ohjaus konsoliin 12." #: security/help.pm:79 #, c-format msgid "" "Enable name resolution spoofing protection. If\n" "\"%s\" is true, also reports to syslog." msgstr "" "Ota käyttöön nimienselvityksen spoofing-suojaus.\n" "Jos \"%s\" on tosi, raportoidaan ne myös syslogiin." #: security/help.pm:80 #, c-format msgid "Security Alerts:" msgstr "Tietoturvahälytykset:" #: security/help.pm:82 #, c-format msgid "Enable IP spoofing protection." msgstr "Ota käyttöön IP spoofing -suojaus." #: security/help.pm:84 #, c-format msgid "Enable libsafe if libsafe is found on the system." msgstr "Ota käyttöön libsafe, jos se löytyy järjestelmästä." #: security/help.pm:86 #, c-format msgid "Enable the logging of IPv4 strange packets." msgstr "Kirjaa epätavalliset IPv4-paketit lokiin." #: security/help.pm:88 #, c-format msgid "Enable msec hourly security check." msgstr "Ota käyttöön kerran tunnissa suoritettavat turvallisuustarkistukset." #: security/help.pm:90 #, c-format msgid "" "Enable su only from members of the wheel group. If set to no, allows su from " "any user." msgstr "" "Salli komento su vain ryhmän wheel jäsenille. (Jos ei käytössä, kaikilla on " "oikeus käyttää komentoa su.)" #: security/help.pm:92 #, c-format msgid "Use password to authenticate users." msgstr "Käytä salasanoja käyttäjien tunnistamiseen." #: security/help.pm:94 #, c-format msgid "Activate Ethernet cards promiscuity check." msgstr "Ota käyttöön verkkokorttien promiscuous-tarkistus." #: security/help.pm:96 #, c-format msgid "Activate daily security check." msgstr "Ota käyttöön päivittäiset turvallisuustarkistukset." #: security/help.pm:98 #, c-format msgid "Enable sulogin(8) in single user level." msgstr "" "Ota käyttöön sulogin single user -tilassa (runlevel 1).\n" "\n" "Lisätietoja komennolla \"man sulogin\"." #: security/help.pm:100 #, c-format msgid "Add the name as an exception to the handling of password aging by msec." msgstr "Lisää käyttäjätunnus, jota salasanojen vanheneminen ei koske." #: security/help.pm:102 #, c-format msgid "Set password aging to \"max\" days and delay to change to \"inactive\"." msgstr "" "Aseta salasanan vanheneminen ja viive käyttäjätunnuksen merkitsemiseksi " "käyttämättömäksi." #: security/help.pm:104 #, c-format msgid "Set the password history length to prevent password reuse." msgstr "" "Aseta salasanojen historian pituus estämään salasanojen käyttämistä " "uudelleen." #: security/help.pm:106 #, c-format msgid "" "Set the password minimum length and minimum number of digit and minimum " "number of capitalized letters." msgstr "" "Aseta salasanojen vähimmäispituus sekä vähimmäismäärä numeroita ja isoja " "kirjaimia." #: security/help.pm:108 #, c-format msgid "Set the root's file mode creation mask." msgstr "Aseta pääkäyttäjän luomien tiedostojen umask." #: security/help.pm:109 #, c-format msgid "if set to yes, check open ports." msgstr "jos asetettu, tarkistetaan avoimet portit." #: security/help.pm:110 #, c-format msgid "" "if set to yes, check for:\n" "\n" "- empty passwords,\n" "\n" "- no password in /etc/shadow\n" "\n" "- for users with the 0 id other than root." msgstr "" "jos asetettu, tarkistetaan:\n" "\n" "- tyhjät salasanat,\n" "\n" "- salasanan puuttuminen tiedostossa /etc/shadow\n" "\n" "- onko muiden käyttäjätunnuksien, kuin root, UID nolla." #: security/help.pm:117 #, c-format msgid "if set to yes, check permissions of files in the users' home." msgstr "" "jos asetettu, tarkistetaan tiedostojen oikeudet käyttäjien kotihakemistossa." #: security/help.pm:118 #, c-format msgid "if set to yes, check if the network devices are in promiscuous mode." msgstr "jos asetettu, tarkistetaan ovatko verkkolaitteet promiscuous-tilassa." #: security/help.pm:119 #, c-format msgid "if set to yes, run the daily security checks." msgstr "jos asetettu, suoritetaan päivittäiset turvallisuustarkistukset." #: security/help.pm:120 #, c-format msgid "if set to yes, check additions/removals of sgid files." msgstr "jos asetettu, tarkistetaan sgid-tiedostojen muutokset." #: security/help.pm:121 #, c-format msgid "if set to yes, check empty password in /etc/shadow." msgstr "jos asetettu, tarkistetaan tyhjät salasanat tiedostossa /etc/shadow." #: security/help.pm:122 #, c-format msgid "if set to yes, verify checksum of the suid/sgid files." msgstr "jos asetettu, tarkistetaan suid- ja sgid-tiedostojen tarkistussumma." #: security/help.pm:123 #, c-format msgid "if set to yes, check additions/removals of suid root files." msgstr "jos asetettu, tarkistetaan suid root -tiedostojen muutokset." #: security/help.pm:124 #, c-format msgid "if set to yes, report unowned files." msgstr "jos asetettu, raportoidaan omistamattomat tiedostot." #: security/help.pm:125 #, c-format msgid "if set to yes, check files/directories writable by everybody." msgstr "" "jos asetettu, tarkistetaan sallivatko tiedostot/hakemistot kirjoituksen " "kaikille." #: security/help.pm:126 #, c-format msgid "if set to yes, run chkrootkit checks." msgstr "jos asetettu, suoritetaan chkrootkit-tarkistuksia." #: security/help.pm:127 #, c-format msgid "" "if set, send the mail report to this email address else send it to root." msgstr "jos asetettu, lähetetään raportit sähköpostitse (muuten root saa ne)." #: security/help.pm:128 #, c-format msgid "if set to yes, report check result by mail." msgstr "jos asetettu, raportoidaan tarkistuksen tulos sähköpostitse." #: security/help.pm:129 #, c-format msgid "Do not send mails if there's nothing to warn about" msgstr "Älä lähetä viestiä, jos ei ole mitään varoitettavaa." #: security/help.pm:130 #, c-format msgid "if set to yes, run some checks against the rpm database." msgstr "jos asetettu, suoritetaan tarkistuksia rpm-tietokannassa." #: security/help.pm:131 #, c-format msgid "if set to yes, report check result to syslog." msgstr "jos asetettu, raportoidaan tarkistuksen tulokset syslogiin." #: security/help.pm:132 #, c-format msgid "if set to yes, reports check result to tty." msgstr "jos asetettu, raportoidaan tarkistuksen tulokset konsoliin." #: security/help.pm:134 #, c-format msgid "Set shell commands history size. A value of -1 means unlimited." msgstr "" "Asettaa komentotulkin historian koon. Arvo -1 tarkoittaa rajoittamatonta." #: security/help.pm:136 #, c-format msgid "Set the shell timeout. A value of zero means no timeout." msgstr "" "Asettaa komentotulkin aikakatkaisun. Arvo 0 (nolla) poistaa aikakatkaisun." #: security/help.pm:136 #, c-format msgid "Timeout unit is second" msgstr "Aikakatkaisun yksikkö on sekunti" #: security/help.pm:138 #, c-format msgid "Set the user's file mode creation mask." msgstr "Aseta käyttäjän luomien tiedostojen umask." #: security/l10n.pm:11 #, c-format msgid "Accept bogus IPv4 error messages" msgstr "Hyväksy virheelliset IPv4-virheviestit." #: security/l10n.pm:12 #, c-format msgid "Accept broadcasted icmp echo" msgstr "Hyväksy yleislähetysosoitteeseen (broadcast) lähetetyt Ping-viestit." #: security/l10n.pm:13 #, c-format msgid "Accept icmp echo" msgstr "Hyväksy Ping-viestit." #: security/l10n.pm:15 #, c-format msgid "/etc/issue* exist" msgstr "Onko /etc/issue* olemassa" #: security/l10n.pm:16 #, c-format msgid "Reboot by the console user" msgstr "Salli konsolikäyttäjän käynnistää tietokone uudelleen." #: security/l10n.pm:17 #, c-format msgid "Allow remote root login" msgstr "Salli pääkäyttäjän etäkirjautuminen." #: security/l10n.pm:18 #, c-format msgid "Direct root login" msgstr "Salli pääkäyttäjän paikallinen kirjautuminen." #: security/l10n.pm:19 #, c-format msgid "List users on display managers (kdm and gdm)" msgstr "Näytä lista käyttäjistä näytönhallinnassa (KDM ja GDM)." #: security/l10n.pm:20 #, c-format msgid "Export display when passing from root to the other users" msgstr "" "Käytä näytön edelleenlähetystä, kun siirrytään root-tililtä muille tileille." #: security/l10n.pm:21 #, c-format msgid "Allow X Window connections" msgstr "Salli yhteydet X-palvelimeen" #: security/l10n.pm:22 #, c-format msgid "Authorize TCP connections to X Window" msgstr "Valtuuta TCP-yhteydet X-palvelimelle" #: security/l10n.pm:23 #, c-format msgid "Authorize all services controlled by tcp_wrappers" msgstr "Valtuuta kaikki palvelut, joita tcp_wrappers valvoo" #: security/l10n.pm:24 #, c-format msgid "Chkconfig obey msec rules" msgstr "Chkconfig tottelee msec:n sääntöjä" #: security/l10n.pm:25 #, c-format msgid "Enable \"crontab\" and \"at\" for users" msgstr "Salli crontab ja at kaikille käyttäjille" #: security/l10n.pm:26 #, c-format msgid "Syslog reports to console 12" msgstr "Järjestelmäloki konsoliin 12" #: security/l10n.pm:27 #, c-format msgid "Name resolution spoofing protection" msgstr "Koneen nimen huijaussuojaus" #: security/l10n.pm:28 #, c-format msgid "Enable IP spoofing protection" msgstr "Ota käyttöön IP spoofing -suojaus." #: security/l10n.pm:29 #, c-format msgid "Enable libsafe if libsafe is found on the system" msgstr "Ota käyttöön libsafe, jos se löytyy järjestelmästä." #: security/l10n.pm:30 #, c-format msgid "Enable the logging of IPv4 strange packets" msgstr "Kirjaa epätavalliset IPv4-paketit lokiin." #: security/l10n.pm:31 #, c-format msgid "Enable msec hourly security check" msgstr "Suorita msec-turvallisuustarkastukset joka tunti." #: security/l10n.pm:32 #, c-format msgid "Enable su only from the wheel group members" msgstr "Salli komento su vain ryhmän wheel jäsenille." #: security/l10n.pm:33 #, c-format msgid "Use password to authenticate users" msgstr "Käytä salasanoja käyttäjien tunnistamiseen." #: security/l10n.pm:34 #, c-format msgid "Ethernet cards promiscuity check" msgstr "Verkkokorttien promiscuous-tarkistus" #: security/l10n.pm:35 #, c-format msgid "Daily security check" msgstr "Päivittäiset turvallisuustarkistukset" #: security/l10n.pm:36 #, c-format msgid "Sulogin(8) in single user level" msgstr "Sulogin(8) yhden käyttäjän tasolla." #: security/l10n.pm:37 #, c-format msgid "No password aging for" msgstr "Salasana ei vanhene." #: security/l10n.pm:38 #, c-format msgid "Set password expiration and account inactivation delays" msgstr "" "Aseta salasanan vanheneminen ja viive tilin merkitsemiselle käyttämättömäksi." #: security/l10n.pm:39 #, c-format msgid "Password history length" msgstr "Salasanahistorian pituus." #: security/l10n.pm:40 #, c-format msgid "Password minimum length and number of digits and upcase letters" msgstr "" "Salasanan vähimmäispituus sekä numeroiden ja isojen kirjainten lukumäärä." #: security/l10n.pm:41 #, c-format msgid "Root umask" msgstr "Pääkäyttäjän umask." #: security/l10n.pm:42 #, c-format msgid "Shell history size" msgstr "Komentotulkin historian koko." #: security/l10n.pm:43 #, c-format msgid "Shell timeout" msgstr "Komentotulkin aikakatkaisu." #: security/l10n.pm:44 #, c-format msgid "User umask" msgstr "Käyttäjän umask" #: security/l10n.pm:45 #, c-format msgid "Check open ports" msgstr "Tarkista avoimet portit." #: security/l10n.pm:46 #, c-format msgid "Check for unsecured accounts" msgstr "Tarkista turvattomat tilit." #: security/l10n.pm:47 #, c-format msgid "Check permissions of files in the users' home" msgstr "Tarkista tiedostojen oikeudet käyttäjien kotihakemistossa." #: security/l10n.pm:48 #, c-format msgid "Check if the network devices are in promiscuous mode" msgstr "Tarkista ovatko verkkolaitteet promiscuous-tilassa." #: security/l10n.pm:49 #, c-format msgid "Run the daily security checks" msgstr "Suorita päivittäiset turvallisuustarkistukset." #: security/l10n.pm:50 #, c-format msgid "Check additions/removals of sgid files" msgstr "Tarkista sgid-tiedostojen muutokset." #: security/l10n.pm:51 #, c-format msgid "Check empty password in /etc/shadow" msgstr "Tarkista tyhjät salasanat tiedostossa /etc/shadow." #: security/l10n.pm:52 #, c-format msgid "Verify checksum of the suid/sgid files" msgstr "Varmistetaan suid- ja sgid tiedostojen tarkistussumma." #: security/l10n.pm:53 #, c-format msgid "Check additions/removals of suid root files" msgstr "Tarkista suid root-tiedostojen lisäämiset/poistamiset." #: security/l10n.pm:54 #, c-format msgid "Report unowned files" msgstr "Raportoi omistamattomat tiedostot." #: security/l10n.pm:55 #, c-format msgid "Check files/directories writable by everybody" msgstr "Tarkista, onko tiedostot/hakemistot kaikkien kirjoitettavissa." #: security/l10n.pm:56 #, c-format msgid "Run chkrootkit checks" msgstr "Suorita chkrootkit-tarkistukset" #: security/l10n.pm:57 #, c-format msgid "Do not send empty mail reports" msgstr "Älä lähetä tyhjiä raportteja sähköpostitse." #: security/l10n.pm:58 #, c-format msgid "If set, send the mail report to this email address else send it to root" msgstr "" "Jos asetettu, raportit lähetetään määriteltyyn osoitteeseen, muuten root saa " "ne." #: security/l10n.pm:59 #, c-format msgid "Report check result by mail" msgstr "Raportoi tarkistuksen tulos sähköpostitse." #: security/l10n.pm:60 #, c-format msgid "Run some checks against the rpm database" msgstr "Suorita tarkistuksia rpm-tietokannassa." #: security/l10n.pm:61 #, c-format msgid "Report check result to syslog" msgstr "Raportoi tarkistuksien tulokset järjestelmälokiin." #: security/l10n.pm:62 #, c-format msgid "Reports check result to tty" msgstr "Raportoi tarkistuksen tulokset näytölle." #: security/level.pm:10 #, c-format msgid "Disable msec" msgstr "Poista msec käytöstä" #: security/level.pm:11 #, c-format msgid "Standard" msgstr "Normaali" #: security/level.pm:12 #, c-format msgid "Secure" msgstr "Turvallinen" #: security/level.pm:52 #, c-format msgid "" "This level is to be used with care, as it disables all additional security\n" "provided by msec. Use it only when you want to take care of all aspects of " "system security\n" "on your own." msgstr "" "Tasoa on käytettävä varoen, koska se poistaa käytöstä kaiken\n" "msec:n tarjoaman ylimääräisen turvallisuuden. Käytä tasoa\n" "vain, jos haluat huolehtia itse järjestelmän turvallisuudesta." #: security/level.pm:55 #, c-format msgid "" "This is the standard security recommended for a computer that will be used " "to connect to the Internet as a client." msgstr "" "Normaali turvallisuustaso. Tasoa suositellaan käytettäväksi tietokoneilla,\n" "joita käytetään Internetin asiakaskoneina." #: security/level.pm:56 #, c-format msgid "" "With this security level, the use of this system as a server becomes " "possible.\n" "The security is now high enough to use the system as a server which can " "accept\n" "connections from many clients. Note: if your machine is only a client on the " "Internet, you should choose a lower level." msgstr "" "Turvallisuustaso mahdollistaa järjestelmän käytön palvelimena.\n" "Turvallisuustaso on riittävän korkea, jotta järjestelmää voidaan\n" "käyttää palvelimena, joka hyväksyy yhteyksiä monilta asiakaskoneilta.\n" "HUOM: Jos konetta käytetään ainoastaan Internetin asiakaskoneena,\n" "riittää alhaisempi turvallisuustaso." #: security/level.pm:63 #, c-format msgid "DrakSec Basic Options" msgstr "DracSec perusasetukset" #: security/level.pm:66 #, c-format msgid "Please choose the desired security level" msgstr "Valitse haluttu turvallisuustaso" #. -PO: this string is used to properly format "<security level>: <level description>" #: security/level.pm:70 #, c-format msgid "%s: %s" msgstr "%s: %s" #: security/level.pm:73 #, c-format msgid "Security Administrator:" msgstr "Tietoturvan ylläpitäjä:" #: security/level.pm:74 #, c-format msgid "Login or email:" msgstr "Tunnus tai sähköpostiosoite:" #: services.pm:18 #, c-format msgid "Listen and dispatch ACPI events from the kernel" msgstr "Kuuntelee ja ilmoittaa ytimen ACPI-tapahtumat" #: services.pm:19 #, c-format msgid "Launch the ALSA (Advanced Linux Sound Architecture) sound system" msgstr "Käynnistä ALSA-äänijärjestelmä." #: services.pm:20 #, c-format msgid "Anacron is a periodic command scheduler." msgstr "Anacron on ajoitettujen komentojen ajastaja." #: services.pm:21 #, c-format msgid "" "apmd is used for monitoring battery status and logging it via syslog.\n" "It can also be used for shutting down the machine when the battery is low." msgstr "" "apmd:a käytetään valvomaan akkujen tilaa ja raportoimaan siitä syslogin\n" "kautta. apmd:a voidaan myös käyttää sulkemaan kone akkujen ollessa tyhjiä." #: services.pm:23 #, c-format msgid "" "Runs commands scheduled by the at command at the time specified when\n" "at was run, and runs batch commands when the load average is low enough." msgstr "" "Suorittaa komentoja tiettyinä ajanhetkillä, jotka on määritelty at-" "komennolla.\n" "Suorittaa myös eräajoja, kun järjestelmän kuormitus on riittävän matala." #: services.pm:25 #, c-format msgid "Avahi is a ZeroConf daemon which implements an mDNS stack" msgstr "Avahi on ZeroConf-taustaprosessi, joka toteuttaa mDNS-pinon" #: services.pm:26 #, c-format msgid "Set CPU frequency settings" msgstr "Asettaa prosessorin kellotaajuuden asetukset" #: services.pm:27 #, c-format msgid "" "cron is a standard UNIX program that runs user-specified programs\n" "at periodic scheduled times. vixie cron adds a number of features to the " "basic\n" "UNIX cron, including better security and more powerful configuration options." msgstr "" "cron on UNIX:n perusohjelma, joka suorittaa määriteltyjä ohjelmia\n" "määriteltyinä ajanhetkinä. vixie cron lisää monia ominaisuuksia\n" "verrattuna normaaliin UNIX:n cron-ohjelmaan, kuten paremman\n" "turvallisuuden ja laajemmat asetukset." #: services.pm:30 #, c-format msgid "" "Common UNIX Printing System (CUPS) is an advanced printer spooling system" msgstr "" "Common UNIX Printing System (CUPS) on edistynyt " "tulostustenhallintajärjestelmä." #: services.pm:31 #, c-format msgid "Launches the graphical display manager" msgstr "Käynnistää graafisen näytönhallinnan." #: services.pm:32 #, c-format msgid "" "FAM is a file monitoring daemon. It is used to get reports when files " "change.\n" "It is used by GNOME and KDE" msgstr "" "FAM on tiedostonvalvontataustaprosessi. Sitä käytetään raportoimaan " "tiedostojen\n" "muuttumisesta. Sitä käyttävät GNOME ja KDE." #: services.pm:34 #, c-format msgid "" "G15Daemon allows users access to all extra keys by decoding them and \n" "pushing them back into the kernel via the linux UINPUT driver. This driver " "must be loaded \n" "before g15daemon can be used for keyboard access. The G15 LCD is also " "supported. By default, \n" "with no other clients active, g15daemon will display a clock. Client " "applications and \n" "scripts can access the LCD via a simple API." msgstr "" "G15Daemon sallii käyttäjien käyttää kaikkia näppäimistön extra-näppäimiä" #: services.pm:39 #, c-format msgid "" "GPM adds mouse support to text-based Linux applications such the\n" "Midnight Commander. It also allows mouse-based console cut-and-paste " "operations,\n" "and includes support for pop-up menus on the console." msgstr "" "GPM lisää hiirituen tekstipohjaisiin Linux-sovelluksiin kuten\n" "Midnight Commanderiin. GPM mahdollistaa myös \"Leikkaa ja\n" "Liimaa\" -toiminnot konsolissa hiiren avulla ja sisältää tuen\n" "valikoille konsolissa." #: services.pm:42 #, c-format msgid "HAL is a daemon that collects and maintains information about hardware" msgstr "HAL on taustaprosessi, joka kerää ja ylläpitää tietoja laitteistosta." #: services.pm:43 #, c-format msgid "" "HardDrake runs a hardware probe, and optionally configures\n" "new/changed hardware." msgstr "" "HardDrake etsii järjestelmästä uusia laitteita ja tarvittaessa\n" "asettaa uuden tai muuttuneen laitteiston." #: services.pm:45 #, c-format msgid "" "Apache is a World Wide Web server. It is used to serve HTML files and CGI." msgstr "" "Apache on WWW-palvelin. Palvelinta käytetään jakamaan HTML-\n" "tiedostoja ja ajamaan CGI-ohjelmia." #: services.pm:46 #, c-format msgid "" "The internet superserver daemon (commonly called inetd) starts a\n" "variety of other internet services as needed. It is responsible for " "starting\n" "many services, including telnet, ftp, rsh, and rlogin. Disabling inetd " "disables\n" "all of the services it is responsible for." msgstr "" "Internetin pääpalvelin-taustaprosessi (inetd) käynnistää tarpeen\n" "mukaan useita eri Internet-palveluita kuten telnet, ftp,rsh ja rlogin.\n" "Inetd:n poistaminen poistaa myös nämä palvelut käytöstä." #: services.pm:50 #, c-format msgid "Automates a packet filtering firewall with ip6tables" msgstr "Automatisoi paketteja suodattavan palomuurin ip6tables:n avulla" #: services.pm:51 #, c-format msgid "Automates a packet filtering firewall with iptables" msgstr "Automatisoi paketteja suodattavan palomuurin iptables:n avulla" #: services.pm:52 #, c-format msgid "" "Evenly distributes IRQ load across multiple CPUs for enhanced performance" msgstr "" "Jakaa IRQ-kuorman tasaisesti usean prosessorin kesken parantaen suorituskykyä" #: services.pm:53 #, c-format msgid "" "This package loads the selected keyboard map as set in\n" "/etc/sysconfig/keyboard. This can be selected using the kbdconfig utility.\n" "You should leave this enabled for most machines." msgstr "" "Palvelu valitun näppäinkartan tiedoston /etc/sysconfig/keyboard\n" "asetusten mukaisesti. Asetukset voidaan valita kbdconfig-työkalulla.\n" "Palvelu tulisi ottaa käyttöön lähes kaikissa järjestelmissä." #: services.pm:56 #, c-format msgid "" "Automatic regeneration of kernel header in /boot for\n" "/usr/include/linux/{autoconf,version}.h" msgstr "" "Automaattinen ytimen otsikkotiedoston korjaus /boot-hakemistossa\n" "tiedostoille /usr/include/linux/{autoconf,versio}.h" #: services.pm:58 #, c-format msgid "Automatic detection and configuration of hardware at boot." msgstr "" "Automaattinen uuden laitteiston havaitseminen\n" "ja asettaminen koneen käynnistyksen yhteydessä." #: services.pm:59 #, c-format msgid "Tweaks system behavior to extend battery life" msgstr "Muokkaa järjestelmän käyttäytymistä parantaen akun kestoa" #: services.pm:60 #, c-format msgid "" "Linuxconf will sometimes arrange to perform various tasks\n" "at boot-time to maintain the system configuration." msgstr "" "Linuxconf järjestää joskus aikaa erilaisten tehtävien hoitamiseen\n" "käynnistyksen aikana pitääkseen yllä järjestelmän asetuksia." #: services.pm:62 #, c-format msgid "" "lpd is the print daemon required for lpr to work properly. It is\n" "basically a server that arbitrates print jobs to printer(s)." msgstr "" "lpd on tulostuspalvelin, jonka lpr-ohjelma vaatii toimiakseen.\n" "lpd on palvelin, joka jakaa tulostustöitä tulostimille." #: services.pm:64 #, c-format msgid "" "Linux Virtual Server, used to build a high-performance and highly\n" "available server." msgstr "" "Linux Virtual Serverin avulla voidaan rakentaa tehokas\n" "korkean käytettävyyden palvelin." #: services.pm:66 #, c-format msgid "Monitors the network (Interactive Firewall and wireless" msgstr "Valvoo verkkoa" #: services.pm:67 #, c-format msgid "Software RAID monitoring and management" msgstr "Softa-RAID:n valvonta ja hallinta" #: services.pm:68 #, c-format msgid "" "DBUS is a daemon which broadcasts notifications of system events and other " "messages" msgstr "" "DBUS on taustaprosessi, joka kuuluttaa järjestelmän ilmoituksia ja muista " "viestejä." #: services.pm:69 #, c-format msgid "Enables MSEC security policy on system startup" msgstr "Ottaa MSEC-tietoturvakäytännöt käyttöön järjestelmän käynnistyessä" #: services.pm:70 #, c-format msgid "" "named (BIND) is a Domain Name Server (DNS) that is used to resolve host " "names to IP addresses." msgstr "" "named (BIND) on nimipalvelin (DNS), jota käytetään\n" "muunnettaessa koneiden verkkonimiä IP-osoitteiksi." #: services.pm:71 #, c-format msgid "Initializes network console logging" msgstr "Käynnistää verkon yli tapahtuvan ytimen viestien kirjaamisen" #: services.pm:72 #, c-format msgid "" "Mounts and unmounts all Network File System (NFS), SMB (Lan\n" "Manager/Windows), and NCP (NetWare) mount points." msgstr "" "Liittää ja irrottaa NFS- (Network File System),\n" "SMB- (Lan Manager/Windows) ja NCP- (NetWare) liitospisteet" #: services.pm:74 #, c-format msgid "" "Activates/Deactivates all network interfaces configured to start\n" "at boot time." msgstr "" "Ottaa käyttöön tai poistaa käytöstä kaikki verkkoliitännät,\n" "jotka on asetettu käynnistyväksi käynnistyksen yhteydessä." #: services.pm:76 #, c-format msgid "Requires network to be up if enabled" msgstr "Vaatii verkon käynnistymisen, jos verkko on otettu käyttöön" #: services.pm:77 #, c-format msgid "Wait for the hotplugged network to be up" msgstr "Odottaa hotplug-kytketyn verkon käynnistymistä" #: services.pm:78 #, c-format msgid "" "NFS is a popular protocol for file sharing across TCP/IP networks.\n" "This service provides NFS server functionality, which is configured via the\n" "/etc/exports file." msgstr "" "NFS on yleinen protokolla tiedostojen jakoon TCP/IP-\n" "verkoissa. Tämä palvelu mahdollistaa NFS-palvelimen\n" "käynnistämisen, jota ohjataan tiedostosta /etc/exports." #: services.pm:81 #, c-format msgid "" "NFS is a popular protocol for file sharing across TCP/IP\n" "networks. This service provides NFS file locking functionality." msgstr "" "NFS on yleinen protokolla tiedostojen jakoon TCP/IP-\n" "verkoissa. Tämä palvelu mahdollistaa NSF-tiedostolukot." #: services.pm:83 #, c-format msgid "Synchronizes system time using the Network Time Protocol (NTP)" msgstr "Tahdistaan järjestelmän kellon NTP-protokollan avulla." #: services.pm:84 #, c-format msgid "" "Automatically switch on numlock key locker under console\n" "and Xorg at boot." msgstr "" "Asettaa käynnistyksen yhteydessä näppäimistön numlock-tilan päälle,\n" "sekä konsoleille että Xorg:lle." #: services.pm:86 #, c-format msgid "Support the OKI 4w and compatible winprinters." msgstr "Tuki OKI 4w -yhteensopiville Windows-tulostimille." #: services.pm:87 #, c-format msgid "Checks if a partition is close to full up" msgstr "Tarkistaa osioiden vapaan levytilan" #: services.pm:88 #, c-format msgid "" "PCMCIA support is usually to support things like ethernet and\n" "modems in laptops. It will not get started unless configured so it is safe " "to have\n" "it installed on machines that do not need it." msgstr "" "PCMCIA-tukea käytetään yleensä kannettavissa tietokoneissa\n" "ethernet- ja modeemikorttien tukemiseen. Palvelu ei käynnisty,\n" "ellei sitä ole asetettu, joten sen voi asentaa myös koneisiin,\n" "jotka eivät sitä tarvitse." #: services.pm:91 #, c-format msgid "" "The portmapper manages RPC connections, which are used by\n" "protocols such as NFS and NIS. The portmap server must be running on " "machines\n" "which act as servers for protocols which make use of the RPC mechanism." msgstr "" "Portmapper hallitsee RPC-yhteyksiä, joita käyttävät esimerkiksi\n" "NFS- ja NIS-protokollat. Portmap-palvelin on oltava käynnissä\n" "järjestelmissä, jotka haluavat tarjota näitä protokollia." #: services.pm:94 #, c-format msgid "Reserves some TCP ports" msgstr "Varaa joitakin TCP-portteja" #: services.pm:95 #, c-format msgid "" "Postfix is a Mail Transport Agent, which is the program that moves mail from " "one machine to another." msgstr "" "Postfix on sähköpostin siirtoagentti eli ohjelma,\n" "joka välittää postia koneelta toiselle." #: services.pm:96 #, c-format msgid "" "Saves and restores system entropy pool for higher quality random\n" "number generation." msgstr "" "Tallentaa ja palauttaa järjestelmän satunnaislukuvarannon,\n" "mikä parantaa satunnaislukujen laatua." #: services.pm:98 #, c-format msgid "" "Assign raw devices to block devices (such as hard disk drive\n" "partitions), for the use of applications such as Oracle or DVD players" msgstr "" "Määrää raakalaitteet lohkolaitteiksi (kuten kiintolevyn osiot)\n" "tietyn tyyppisten sovellusten, kuten Oracle tai DVD-soitin, käyttöön" #: services.pm:100 #, c-format msgid "Nameserver information manager" msgstr "Nimipalvelintietojen hallintasovellus" #: services.pm:101 #, c-format msgid "" "The routed daemon allows for automatic IP router table updated via\n" "the RIP protocol. While RIP is widely used on small networks, more complex\n" "routing protocols are needed for complex networks." msgstr "" "Routed-taustaprosessi mahdollistaa automaattiset IP-reititystaulun " "päivitykset\n" "RIP-protokollalla. Vaikka RIP-protokollaa käytetään paljon pienissä\n" "verkoissa, vaatii monimutkaisemmat verkot parempia reititysprotokollia." #: services.pm:104 #, c-format msgid "" "The rstat protocol allows users on a network to retrieve\n" "performance metrics for any machine on that network." msgstr "" "Rstat-protokolla mahdollistaa verkon käyttäjien hakea\n" "lisätietoja minkä tahansa verkon laitteen suorituskyvystä." #: services.pm:106 #, c-format msgid "" "Syslog is the facility by which many daemons use to log messages to various " "system log files. It is a good idea to always run rsyslog." msgstr "" "Syslog on palvelu, jonka avulla monet taustaprosessit kirjoittavat viestit " "järjestelmän lokitiedostoihin. On järkevää käyttää syslog-ohjelmaa aina." #: services.pm:107 #, c-format msgid "" "The rusers protocol allows users on a network to identify who is\n" "logged in on other responding machines." msgstr "" "Rusers-protokolla sallii verkon käyttäjien tunnistaa muihin\n" "koneisiin kirjatuneet käyttäjät." #: services.pm:109 #, c-format msgid "" "The rwho protocol lets remote users get a list of all of the users\n" "logged into a machine running the rwho daemon (similar to finger)." msgstr "" "Rwho-protokollalla etäkäyttäjät voivat listata kaikki\n" "koneella olevat käyttäjät (vastaa komentoa finger)." #: services.pm:111 #, c-format msgid "" "SANE (Scanner Access Now Easy) enables to access scanners, video cameras, ..." msgstr "" "SANE mahdollistaa kuvanlukijoiden, videokameroiden yms. liittämisen " "tietokoneeseen" #: services.pm:112 #, c-format msgid "Packet filtering firewall" msgstr "Paketteja suodattava palomuuri" #: services.pm:113 #, c-format msgid "" "The SMB/CIFS protocol enables to share access to files & printers and also " "integrates with a Windows Server domain" msgstr "" "SMB/CIFS-protokolla mahdollistaa sekä tiedostojen ja tulostimien jakamisen\n" "että Windows-toimialueeseen yhdistämisen." #: services.pm:114 #, c-format msgid "Launch the sound system on your machine" msgstr "Käynnistää tietokoneen äänijärjestelmän" #: services.pm:115 #, c-format msgid "layer for speech analysis" msgstr "Puheentunnistus" #: services.pm:116 #, c-format msgid "" "Secure Shell is a network protocol that allows data to be exchanged over a " "secure channel between two computers" msgstr "" "SSH on verkkoprotokolla, joka mahdollistaa tiedon siirtämisen salattuna " "kahden koneen välillä." #: services.pm:117 #, c-format msgid "" "Syslog is the facility by which many daemons use to log messages\n" "to various system log files. It is a good idea to always run syslog." msgstr "" "Syslog on palvelu, jonka avulla monet taustaprosessit kirjoittavat\n" "viestit järjestelmän lokitiedostoihin. On järkevää käyttää\n" "syslog-ohjelmaa aina." #: services.pm:119 #, c-format msgid "Moves the generated persistent udev rules to /etc/udev/rules.d" msgstr "Siirtää luodut pysyvät udev-säännöt hakemistoon /etc/udev/rules.d" #: services.pm:120 #, c-format msgid "Load the drivers for your usb devices." msgstr "Lataa USB-laitteiden ajurit." #: services.pm:121 #, c-format msgid "A lightweight network traffic monitor" msgstr "Kevyt verkkoliikenteen tarkkailusovellus" #: services.pm:122 #, c-format msgid "Starts the X Font Server." msgstr "Käynnistää X-kirjasinpalvelimen." #: services.pm:123 #, c-format msgid "Starts other deamons on demand." msgstr "Käynnistää muut taustaprosessit tarvittaessa." #: services.pm:146 #, c-format msgid "Printing" msgstr "Tulostus" #: services.pm:149 #, c-format msgid "Internet" msgstr "Internet" #: services.pm:154 #, c-format msgid "" "_: Keep these entry short\n" "Networking" msgstr "Verkko" #: services.pm:156 #, c-format msgid "System" msgstr "Järjestelmä" #: services.pm:162 #, c-format msgid "Remote Administration" msgstr "Etähallinta" #: services.pm:171 #, c-format msgid "Database Server" msgstr "Tietokantapalvelin" #: services.pm:182 services.pm:221 #, c-format msgid "Services" msgstr "Palvelut" #: services.pm:182 #, c-format msgid "Choose which services should be automatically started at boot time" msgstr "Valitse automaattisesti käynnistettävät palvelut" #: services.pm:200 #, c-format msgid "%d activated for %d registered" msgstr "%d aktivoitu, %d asennettu" #: services.pm:237 #, c-format msgid "running" msgstr "käynnissä" #: services.pm:237 #, c-format msgid "stopped" msgstr "pysäytetty" #: services.pm:242 #, c-format msgid "Services and daemons" msgstr "Palvelut ja taustaprosessit" #: services.pm:248 #, c-format msgid "" "No additional information\n" "about this service, sorry." msgstr "" "Valitettavasti palvelusta\n" "ei löydy lisätietoja." #: services.pm:253 ugtk2.pm:924 #, c-format msgid "Info" msgstr "Tietoja" #: services.pm:256 #, c-format msgid "Start when requested" msgstr "Käynnistä tarvittaessa" #: services.pm:256 #, c-format msgid "On boot" msgstr "Käynnistyksen yhteydessä" #: services.pm:274 #, c-format msgid "Start" msgstr "Käynnistä" #: services.pm:274 #, c-format msgid "Stop" msgstr "Pysäytä" #: standalone.pm:25 #, c-format msgid "" "This program is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2, or (at your option)\n" "any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, write to the Free Software\n" "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, " "USA.\n" msgstr "" "Tämä ohjelma on vapaa; voit levittää ja/tai muokata sitä Free\n" "Software Foundationin julkaiseman 'GNU General Public License'\n" "-lisenssin mukaisesti; joko lisenssin version 2 mukaisesti, tai\n" "(niin halutessasi) minkä tahansa uudemman version mukaisesti.\n" "\n" "Tämä ohjelma on julkaistu siinä toivossa, että se osoittautuisi\n" "hyödylliseksi, mutta ILMAN MINKÄÄNLAISTA TAKUUTA; ilman edes\n" "oletettua takuuta TUOTTEEN TOIMIVUUDESTA tai SOPIVUUDESTA \n" "TIETTYYN TEHTÄVÄÄN. Lisätietoja saat tutustumalla 'GNU General \n" "Public License' dokumentaatioon.\n" "\n" "Hakemasi ohjelman mukana kuuluu tulla kopio \"GNU General Public\n" "License\" dokumentaatiosta; jos näin ei ole, kirjoita Free Software\n" "Foundation, Inc.:lle osoitteeseen 51 Franklin Street, Fifth Floor, Boston,\n" "MA 02110-1301, USA.\n" #: standalone.pm:44 #, c-format msgid "" "[--config-info] [--daemon] [--debug] [--default] [--show-conf]\n" "Backup and Restore application\n" "\n" "--default : save default directories.\n" "--debug : show all debug messages.\n" "--show-conf : list of files or directories to backup.\n" "--config-info : explain configuration file options (for non-X " "users).\n" "--daemon : use daemon configuration. \n" "--help : show this message.\n" "--version : show version number.\n" msgstr "" "[--config-info] [--daemon] [--debug] [--default] [--show-conf]\n" "Varmistus- ja palautussovellus\n" "\n" "--default : tallenna oletushakemistot.\n" "--debug : näytä kaikki vianjäljitysviestit.\n" "--show-conf : listaa varmistettavat tiedostot ja hakemistot.\n" "--config-info : selitä asetustiedoston asetukset (käyttäjille ilman " "X-palvelinta).\n" "--daemon : suorita taustaprosessina.\n" "--help : näytä tämä viesti.\n" "--version : näytä versiotiedot.\n" #: standalone.pm:56 #, c-format msgid "" "[--boot]\n" "OPTIONS:\n" " --boot - enable to configure boot loader\n" "default mode: offer to configure autologin feature" msgstr "" "[--boot]\n" "VALITSIMET:\n" " --boot - aseta käynnistyslatain\n" "Oletustila: tarjoutuu asettamaan automaattisen sisäänkirjautumisen" #: standalone.pm:60 #, c-format msgid "" "[OPTIONS] [PROGRAM_NAME]\n" "\n" "OPTIONS:\n" " --help - print this help message.\n" " --report - program should be one of %s tools\n" " --incident - program should be one of %s tools" msgstr "" "[VALITSIMET] [OHJELMAN_NIMI]\n" "\n" "VALITSIMET:\n" " --help - tulosta tämä viesti.\n" " --report - ohjelman pitäisi olla yksi %s:n työkaluista\n" " --incident - ohjelman pitäisi olla yksi %s:n työkaluista" #: standalone.pm:66 #, c-format msgid "" "[--add]\n" " --add - \"add a network interface\" wizard\n" " --del - \"delete a network interface\" wizard\n" " --skip-wizard - manage connections\n" " --internet - configure internet\n" " --wizard - like --add" msgstr "" "[--add]\n" " --add - \"lisää verkkoliitäntä\"-velho\n" " --del - \"poista verkkoliitäntä\"-velho\n" " --skip-wizard - yhteyksien hallinta\n" " --internet - aseta Internet-asetukset\n" " --wizard - kuten --add" #: standalone.pm:72 #, c-format msgid "" "\n" "Font Importation and monitoring application\n" "\n" "OPTIONS:\n" "--windows_import : import from all available windows partitions.\n" "--xls_fonts : show all fonts that already exist from xls\n" "--install : accept any font file and any directory.\n" "--uninstall : uninstall any font or any directory of font.\n" "--replace : replace all font if already exist\n" "--application : 0 none application.\n" " : 1 all application available supported.\n" " : name_of_application like so for staroffice \n" " : and gs for ghostscript for only this one." msgstr "" "\n" "Kirjasinten tuonti- ja valvontasovellus\n" "\n" "VALITSIMET:\n" "--windows_import : tuo kaikilta käytettävissä olevilta windows-osioilta.\n" "--xls_fonts : näytä kaikki olemassa olevat xls-kirjasimet\n" "--install : hyväksy mikä tahansa kirjasin ja hakemisto.\n" "--uninstall : poista mikä tahansa kirjasin tai kirjasinhakemisto.\n" "--replace : korvaa kaikki olemassa olevat kirjasimet.\n" "--application : 0 ei ohjelmistoa.\n" " : 1 kaikki olemassa olevat ohjelmistot tuettu.\n" " : ohjelmiston_nimi, eli so vastaa StarOfficea\n" " : ja gs vastaa GhostScriptiä." #: standalone.pm:87 #, c-format msgid "" "[OPTIONS]...\n" "%s Terminal Server Configurator\n" "--enable : enable MTS\n" "--disable : disable MTS\n" "--start : start MTS\n" "--stop : stop MTS\n" "--adduser : add an existing system user to MTS (requires username)\n" "--deluser : delete an existing system user from MTS (requires " "username)\n" "--addclient : add a client machine to MTS (requires MAC address, IP, " "nbi image name)\n" "--delclient : delete a client machine from MTS (requires MAC address, " "IP, nbi image name)" msgstr "" "[VALITSIMET]...\n" "%s Terminal Server asetustyökalu\n" "--enable : ota MTS käyttöön.\n" "--disable : poista MTS käytöstä.\n" "--start : käynnistä MTS\n" "--stop : pysäytä MTS\n" "--adduser : lisää olemassa oleva käyttäjä MTS:lle (vaatii " "käyttäjätunnuksen)\n" "--deluser : poista olemassa oleva käyttäjä MTS:lta (vaatii " "käyttäjätunnuksen)\n" "--addclient : lisää asiakaskone MTS:lle (vaatii MAC- ja IP-osoitteen " "sekä nbi-imagetiedoston nimen)\n" "--delclient : poista asiakaskone MTS:lta (vaatii MAC- ja IP-osoitteen " "sekä nbi-imagetiedoston nimen)" #: standalone.pm:99 #, c-format msgid "[keyboard]" msgstr "[näppäimistö]" #: standalone.pm:100 #, c-format msgid "[--file=myfile] [--word=myword] [--explain=regexp] [--alert]" msgstr "[--file=myfile] [--word=myword] [--explain=regexp] [--alert]" #: standalone.pm:101 #, c-format msgid "" "[OPTIONS]\n" "Network & Internet connection and monitoring application\n" "\n" "--defaultintf interface : show this interface by default\n" "--connect : connect to internet if not already connected\n" "--disconnect : disconnect to internet if already connected\n" "--force : used with (dis)connect : force (dis)connection.\n" "--status : returns 1 if connected 0 otherwise, then exit.\n" "--quiet : do not be interactive. To be used with (dis)connect." msgstr "" "[VALITSIMET]\n" "Verkon ja Internetin yhteys- ja seurantasovellus\n" "\n" "--defaultintf liitäntä : näytä tämä liitäntä oletuksena.\n" "--connect : avaa yhteyden Internetiin, jos sitä ei ole.\n" "--disconnect : sulkee yhteyden Internetiin, jos se on käytössä.\n" "--force : käytä (dis)connect:n kanssa: pakota yhteyden avaus/sulkeminen.\n" "--status : palauttaa arvon 1, jos yhteys on avattu, muuten 0, ja poistuu.\n" "--quiet : ei-interaktiivinen tila. Käytetään (dis)connect:n kanssa." #: standalone.pm:111 #, c-format msgid "" "[OPTION]...\n" " --no-confirmation do not ask first confirmation question in %s Update " "mode\n" " --no-verify-rpm do not verify packages signatures\n" " --changelog-first display changelog before filelist in the " "description window\n" " --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found" msgstr "" "[VALITSIMET]...\n" " --no-confirmation älä pyydä varmistusta %s Update -tilassa.\n" " --no-verify-rpm älä tarkista pakettien allekirjoitusta\n" " --changelog-first näytä muutosloki ennen tiedostolistausta " "kuvausikkunassa\n" " --merge-all-rpmnew ehdota kaikkien .rpmnew- ja .rpmsave-tiedostojen " "yhdistämistä" #: standalone.pm:116 #, c-format msgid "" "[--manual] [--device=dev] [--update-sane=sane_source_dir] [--update-" "usbtable] [--dynamic=dev]" msgstr "" "[--manual] [--device=dev] [--update-sane=sane_source_dir] [--update-" "usbtable] [--dynamic=dev]" #: standalone.pm:117 #, c-format msgid "" " [everything]\n" " XFdrake [--noauto] monitor\n" " XFdrake resolution" msgstr "" " [everything]\n" " XFdrake [--noauto] näyttö\n" " XFdrake tarkkuus" #: standalone.pm:153 #, c-format msgid "" "\n" "Usage: %s [--auto] [--beginner] [--expert] [-h|--help] [--noauto] [--" "testing] [-v|--version] " msgstr "" "\n" "Käyttö: %s [--auto] [--beginner] [--expert] [-h|--help] [--noauto] [--" "testing] [-v|--version] " #: timezone.pm:161 timezone.pm:162 #, c-format msgid "All servers" msgstr "Kaikki palvelimet" #: timezone.pm:196 #, c-format msgid "Global" msgstr "Yleiset" #: timezone.pm:199 #, c-format msgid "Africa" msgstr "Afrikka" #: timezone.pm:200 #, c-format msgid "Asia" msgstr "Aasia" #: timezone.pm:201 #, c-format msgid "Europe" msgstr "Eurooppa" #: timezone.pm:202 #, c-format msgid "North America" msgstr "Pohjois-Amerikka" #: timezone.pm:203 #, c-format msgid "Oceania" msgstr "Oseania" #: timezone.pm:204 #, c-format msgid "South America" msgstr "Etelä-Amerikka" #: timezone.pm:213 #, c-format msgid "Hong Kong" msgstr "Hong Kong" #: timezone.pm:250 #, c-format msgid "Russian Federation" msgstr "Venäjä" #: timezone.pm:258 #, c-format msgid "Yugoslavia" msgstr "Jugoslavia" #: ugtk2.pm:812 #, c-format msgid "Is this correct?" msgstr "Onko tämä oikein?" #: ugtk2.pm:874 #, c-format msgid "You have chosen a file, not a directory" msgstr "Valittiin tiedosto, ei hakemistoa." #: wizards.pm:95 #, c-format msgid "" "%s is not installed\n" "Click \"Next\" to install or \"Cancel\" to quit" msgstr "" "%s ei ole asennettu\n" "Napsauta \"Seuraava\" asentaaksesi tai \"Peruuta\" lopettaaksesi." #: wizards.pm:99 #, c-format msgid "Installation failed" msgstr "Asennus epäonnistui" #~ msgid "" #~ "Launch packet filtering for Linux kernel 2.2 series, to set\n" #~ "up a firewall to protect your machine from network attacks." #~ msgstr "" #~ "Käynnistä pakettisuodatin Linux-ytimen 2.2-sarjalle\n" #~ "pystyttääksesi palomuurin ja suojataksesi tietokoneen\n" #~ "mahdollisilta verkkohyökkäyksiltä." #~ msgid "File sharing" #~ msgstr "Tiedostojen jako" #~ msgid "Enable 5.1 sound with Pulse Audio" #~ msgstr "Ota 5.1-äänet käyttöön PulseAudio:n kanssa" #~ msgid "Enable user switching for audio applications" #~ msgstr "Salli käyttäjien kytkeä ääniohjelmia" #~ msgid "" #~ "You agree not to (i) sell, export, re-export, transfer, divert, disclose " #~ "technical data, or \n" #~ "dispose of, any Software to any person, entity, or destination prohibited " #~ "by US export laws \n" #~ "or regulations including, without limitation, Cuba, Iran, North Korea, " #~ "Sudan and Syria; or \n" #~ "(ii) use any Software for any use prohibited by the laws or regulations " #~ "of the United States.\n" #~ "\n" #~ "U.S. GOVERNMENT RESTRICTED RIGHTS. \n" #~ "\n" #~ "The Software Products and any accompanying documentation are and shall be " #~ "deemed to be \n" #~ "\"commercial computer software\" and \"commercial computer software " #~ "documentation,\" respectively, \n" #~ "as defined in DFAR 252.227-7013 and as described in FAR 12.212. Any use, " #~ "modification, reproduction, \n" #~ "release, performance, display or disclosure of the Software and any " #~ "accompanying documentation \n" #~ "by the United States Government shall be governed solely by the terms of " #~ "this Agreement and any \n" #~ "other applicable licence agreements and shall be prohibited except to the " #~ "extent expressly permitted \n" #~ "by the terms of this Agreement." #~ msgstr "" #~ "You agree not to (i) sell, export, re-export, transfer, divert, disclose\n" #~ "technical data, or dispose of, any Software to any person, entity, or\n" #~ "destination prohibited by US export laws or regulations including,\n" #~ "without limitation, Cuba, Iran, North Korea, Sudan and Syria; or\n" #~ "(ii) use any Software for any use prohibited by the laws or regulations\n" #~ "of the United States.\n" #~ "\n" #~ "U.S. GOVERNMENT RESTRICTED RIGHTS. \n" #~ "\n" #~ "The Software Products and any accompanying documentation are and\n" #~ "shall be deemed to be \"commercial computer software\" and\n" #~ "\"commercial computer software documentation,\" respectively, as\n" #~ "defined in DFAR 252.227-7013 and as described in FAR 12.212. Any\n" #~ "use, modification, reproduction, release, performance, display or\n" #~ "disclosure of the Software and any accompanying documentation by\n" #~ "the United States Government shall be governed solely by the terms\n" #~ "of this Agreement and any other applicable licence agreements and shall\n" #~ "be prohibited except to the extent expressly permitted by the terms of\n" #~ "this Agreement." #~ msgid "" #~ "Most of these components, but excluding the applications and software " #~ "provided by Google Inc. or \n" #~ "its subsidiaries (\"Google Software\"), are governed under the terms and " #~ "conditions of the GNU \n" #~ "General Public Licence, hereafter called \"GPL\", or of similar licenses." #~ msgstr "" #~ "Most of these components, but excluding the applications and software\n" #~ "provided by Google Inc. or its subsidiaries (\"Google Software\"), are\n" #~ "governed under the terms and conditions of the GNU General Public\n" #~ "Licence, hereafter called \"GPL\", or of similar licenses." #~ msgid "" #~ "Most of these components are governed under the terms and conditions of " #~ "the GNU \n" #~ "General Public Licence, hereafter called \"GPL\", or of similar licenses." #~ msgstr "" #~ "Most of these components are governed under the terms and conditions\n" #~ "of the GNU General Public Licence, hereafter called \"GPL\", or of " #~ "similar licenses." #~ msgid "" #~ "6. Additional provisions applicable to those Software Products provided " #~ "by Google Inc. (\"Google Software\")\n" #~ "\n" #~ "(a) You acknowledge that Google or third parties own all rights, title " #~ "and interest in and to the Google \n" #~ "Software, portions thereof, or software provided through or in " #~ "conjunction with the Google Software, including\n" #~ "without limitation all Intellectual Property Rights. \"Intellectual " #~ "Property Rights\" means any and all rights \n" #~ "existing from time to time under patent law, copyright law, trade secret " #~ "law, trademark law, unfair competition \n" #~ "law, database rights and any and all other proprietary rights, and any " #~ "and all applications, renewals, extensions \n" #~ "and restorations thereof, now or hereafter in force and effect worldwide. " #~ "You agree not to modify, adapt, \n" #~ "translate, prepare derivative works from, decompile, reverse engineer, " #~ "disassemble or otherwise attempt to derive \n" #~ "source code from Google Software. You also agree to not remove, obscure, " #~ "or alter Google's or any third party's \n" #~ "copyright notice, trademarks, or other proprietary rights notices affixed " #~ "to or contained within or accessed in \n" #~ "conjunction with or through the Google Software. \n" #~ "\n" #~ "(b) The Google Software is made available to you for your personal, non-" #~ "commercial use only.\n" #~ "You may not use the Google Software in any manner that could damage, " #~ "disable, overburden, or impair Google's \n" #~ "search services (e.g., you may not use the Google Software in an " #~ "automated manner), nor may you use Google \n" #~ "Software in any manner that could interfere with any other party's use " #~ "and enjoyment of Google's search services\n" #~ "or the services and products of the third party licensors of the Google " #~ "Software.\n" #~ "\n" #~ "(c) Some of the Google Software is designed to be used in conjunction " #~ "with Google's search and other services.\n" #~ "Accordingly, your use of such Google Software is also defined by Google's " #~ "Terms of Service located at \n" #~ "http://www.google.com/terms_of_service.html and Google's Toolbar Privacy " #~ "Policy located at \n" #~ "http://www.google.com/support/toolbar/bin/static.py?page=privacy.html.\n" #~ "\n" #~ "(d) Google Inc. and each of its subsidiaries and affiliates are third " #~ "party beneficiaries of this contract \n" #~ "and may enforce its terms." #~ msgstr "" #~ "6. Additional provisions applicable to those Software Products provided " #~ "by\n" #~ "Google Inc. (\"Google Software\")\n" #~ "\n" #~ "(a) You acknowledge that Google or third parties own all rights, title " #~ "and\n" #~ "interest in and to the Google Software, portions thereof, or software " #~ "provided\n" #~ "through or in conjunction with the Google Software, including without " #~ "limitation\n" #~ "all Intellectual Property Rights. \"Intellectual Property Rights\" means " #~ "any and\n" #~ "all rights existing from time to time under patent law, copyright law, " #~ "trade\n" #~ "secret law, trademark law, unfair competition law, database rights and " #~ "any\n" #~ "and all other proprietary rights, and any and all applications, " #~ "renewals,\n" #~ "extensions and restorations thereof, now or hereafter in force and " #~ "effect\n" #~ "worldwide. You agree not to modify, adapt, translate, prepare derivative\n" #~ "works from, decompile, reverse engineer, disassemble or otherwise " #~ "attempt\n" #~ "to derive source code from Google Software. You also agree to not " #~ "remove,\n" #~ "obscure, or alter Google's or any third party's copyright notice, " #~ "trademarks,\n" #~ "or other proprietary rights notices affixed to or contained within or " #~ "accessed in\n" #~ "conjunction with or through the Google Software.\n" #~ "\n" #~ "(b) The Google Software is made available to you for your personal, " #~ "non-\n" #~ "commercial use only. You may not use the Google Software in any manner\n" #~ "that could damage, disable, overburden, or impair Google's search " #~ "services\n" #~ "(e.g., you may not use the Google Software in an automated manner), nor\n" #~ "may you use Google Software in any manner that could interfere with any\n" #~ "other party's use and enjoyment of Google's search services or the " #~ "services\n" #~ "and products of the third party licensors of the Google Software.\n" #~ "\n" #~ "(c) Some of the Google Software is designed to be used in conjunction " #~ "with\n" #~ "Google's search and other services. Accordingly, your use of such Google\n" #~ "Software is also defined by Google's Terms of Service located at\n" #~ "http://www.google.com/terms_of_service.html and Google's Toolbar Privacy\n" #~ "Policy located at http://www.google.com/support/toolbar/bin/static.py?" #~ "page=privacy.html.\n" #~ "\n" #~ "(d) Google Inc. and each of its subsidiaries and affiliates are third " #~ "party\n" #~ "beneficiaries of this contract and may enforce its terms." #~ msgid "Restrict command line options" #~ msgstr "Rajoita komentoriviasetuksia" #~ msgid "restrict" #~ msgstr "rajoita" #~ msgid "" #~ "Option ``Restrict command line options'' is of no use without a password" #~ msgstr "" #~ "Asetus \"Rajoita komentoriviasetuksia\" ei ole hyödyllinen ilman salasanaa" #~ msgid "Use an encrypted filesystem" #~ msgstr "Käytä salattua tiedostojärjestelmää" #~ msgid "" #~ "To ensure data integrity after resizing the partition(s), \n" #~ "filesystem checks will be run on your next boot into Microsoft Windows®" #~ msgstr "" #~ "Tietojen yhtenäisyyden varmistamiseksi osion tai osioiden koon\n" #~ "muuttamisen jälkeen suoritetaan tiedostojärjestelmän tarkistus,\n" #~ "kun kun Microsoft Windows® käynnistetään seuraavan kerran." #~ msgid "Use the Microsoft Windows® partition for loopback" #~ msgstr "Käytä Microsoft Windows®-osiota loopback-tiedostona" #~ msgid "Which partition do you want to use for Linux4Win?" #~ msgstr "Valitse osio Linux4Win:lle" #~ msgid "Choose the sizes" #~ msgstr "Valitse koot" #~ msgid "Root partition size in MB: " #~ msgstr "Juuriosion koko Mt: " #~ msgid "Swap partition size in MB: " #~ msgstr "Sivutusosion koko Mt: " #~ msgid "" #~ "There is no FAT partition to use as loopback (or not enough space left)" #~ msgstr "" #~ "FAT-osiota ei löydy käytettäväksi loopback-tiedostona (tai levyllä ei ole " #~ "riittävästi vapaata tilaa)" #~ msgid "" #~ "The FAT resizer is unable to handle your partition, \n" #~ "the following error occurred: %s" #~ msgstr "" #~ "FAT-tiedostojärjestelmän koon muuttaja ei osaa käsitellä osiota,\n" #~ "tapahtui virhe: %s" #~ msgid "Automatic routing from ALSA to PulseAudio" #~ msgstr "Automaattinen reititys ALSA:n ja PulseAudion välillä" #~ msgid "Please log out and then use Ctrl-Alt-BackSpace" #~ msgstr "Kirjaudu ulos ja käytä sen jälkeen Ctrl-Alt-Askelpalautin" #~ msgid "Welcome To Crackers" #~ msgstr "Tervetuloa murtautujat" #~ msgid "Poor" #~ msgstr "Huono" #~ msgid "High" #~ msgstr "Korkea" #~ msgid "Higher" #~ msgstr "Korkeampi" #~ msgid "Paranoid" #~ msgstr "Vainoharhainen" #~ msgid "" #~ "This level is to be used with care. It makes your system more easy to " #~ "use,\n" #~ "but very sensitive. It must not be used for a machine connected to " #~ "others\n" #~ "or to the Internet. There is no password access." #~ msgstr "" #~ "Tätä tasoa tulee käyttää varoen. Se tekee järjestelmästäsi helpomman " #~ "käyttää,\n" #~ "mutta hyvin herkän: sitä ei tule käyttää koneessa joka on kytketty muihin " #~ "koneisiin\n" #~ "tai Internetiin. Koneessa ei ole salasanoja." #~ msgid "" #~ "Passwords are now enabled, but use as a networked computer is still not " #~ "recommended." #~ msgstr "" #~ "Salasanat ovat nyt käytössä, mutta koneen käyttö verkossa ei ole " #~ "suositeltua." #~ msgid "" #~ "There are already some restrictions, and more automatic checks are run " #~ "every night." #~ msgstr "" #~ "Joitakin rajoituksia on voimassa ja enemmän automaattisia tarkistuksia " #~ "suoritetaan joka yö." #~ msgid "" #~ "This is similar to the previous level, but the system is entirely closed " #~ "and security features are at their maximum." #~ msgstr "" #~ "Pohjautuu edelliseen tasoon, mutta järjestelmä on kokonaan suljettu.\n" #~ "Turvallisuusasetukset ovat tiukimmillaan." #~ msgid "" #~ "\n" #~ "Warning\n" #~ "\n" #~ "Please read carefully the terms below. If you disagree with any\n" #~ "portion, you are not allowed to install the next CD media. Press " #~ "'Refuse' \n" #~ "to continue the installation without using these media.\n" #~ "\n" #~ "\n" #~ "Some components contained in the next CD media are not governed\n" #~ "by the GPL License or similar agreements. Each such component is then\n" #~ "governed by the terms and conditions of its own specific license. \n" #~ "Please read carefully and comply with such specific licenses before \n" #~ "you use or redistribute the said components. \n" #~ "Such licenses will in general prevent the transfer, duplication \n" #~ "(except for backup purposes), redistribution, reverse engineering, \n" #~ "de-assembly, de-compilation or modification of the component. \n" #~ "Any breach of agreement will immediately terminate your rights under \n" #~ "the specific license. Unless the specific license terms grant you such\n" #~ "rights, you usually cannot install the programs on more than one\n" #~ "system, or adapt it to be used on a network. In doubt, please contact \n" #~ "directly the distributor or editor of the component. \n" #~ "Transfer to third parties or copying of such components including the \n" #~ "documentation is usually forbidden.\n" #~ "\n" #~ "\n" #~ "All rights to the components of the next CD media belong to their \n" #~ "respective authors and are protected by intellectual property and \n" #~ "copyright laws applicable to software programs.\n" #~ msgstr "" #~ "\n" #~ "Varoitus\n" #~ "\n" #~ "Lue huolellisesti alla olevat ehdot. Jos et hyväksy kaikkia\n" #~ "ehtoja, sinulla ei ole oikeuksia asentaa seuraavaa CD-levyä.\n" #~ "Paina 'Kieltäydyn' jos haluat jatkaa asennusta käyttämättä näitä osia.\n" #~ "\n" #~ "\n" #~ "Jotkin seuraavalla CD-levyllä olevat komponentit eivät ole GPL:n tai\n" #~ "vastaavanlaisen lisenssin alaisia. Jokaisen tällaisen komponentin ehdot\n" #~ "on määritelty erikseen niiden omien lisenssien mukaan. Tutustu näihin\n" #~ "lisensseihin huolellisesti ennen kuin käytät tai levität näitä " #~ "komponentteja\n" #~ "eteenpäin.\n" #~ "Tällaiset lisenssit kieltävät tavallisesti siirtämisen, kopioimisen\n" #~ "(lukuunottamatta varmuuskopioita), uudelleenlevityksen, " #~ "käänteissuunnittelun \n" #~ "binäärikoodin kääntämisen tai muokkaamisen. Jokainen rike sopimusta \n" #~ "vastaan päättää oikeutesi kyseiseen lisenssiin. Ellei ole olemassa " #~ "erityisiä \n" #~ "ehtoja, jotka sallivat ohjelmiston asentamisen useaan koneeseen tai \n" #~ "niiden käyttämistä verkon yli, et saa myöskään tehdä niin. Jos et ole \n" #~ "varma kaikista ehdoista, ota yhteys suoraan kyseisen komponentin \n" #~ "tekijään tai jakelijaan. Yllä mainittujen komponenttien tai niiden \n" #~ "dokumentaation saattaminen kolmannen osapuolen käsiin on tavallisesti \n" #~ "kielletty.\n" #~ "\n" #~ "\n" #~ "Kaikki oikeudet seuraavan levyn komponentteihin kuuluvat niiden \n" #~ "asianomaisille tekijöille ja ne on suojattu yksityisen omaisuuden ja \n" #~ "ohjelmistojen tekijänoikeuslakien mukaan.\n" #~ msgid "Use libsafe for servers" #~ msgstr "Käytä libsafea palvelimille" #~ msgid "" #~ "A library which defends against buffer overflow and format string attacks." #~ msgstr "" #~ "Kirjasto, joka suojelee puskurin ylivuoto- ja\n" #~ "merkkijonon muotovirhehyökkäyksiä vastaan." #~ msgid "LILO/grub Installation" #~ msgstr "LILO/grub asennus" #~ msgid "Precise RAM size if needed (found %d MB)" #~ msgstr "Tarkka muistin koko, jos tarpeen (löydettiin %d Mt)" #~ msgid "Give the ram size in MB" #~ msgstr "Anna muistin koko megatavuina (Mt)" #~ msgid "" #~ "If you plan to use aboot, be careful to leave a free space (2048 sectors " #~ "is enough)\n" #~ "at the beginning of the disk" #~ msgstr "" #~ "Jos aiot käyttää aboot:a, varmista että jätät vapaata tilaa levyn alkuun\n" #~ "(2048 sektoria on tarpeeksi)" #~ msgid "Security level" #~ msgstr "Turvataso" #~ msgid "Expand Tree" #~ msgstr "Laajenna puu" #~ msgid "Collapse Tree" #~ msgstr "Sulje puu" #~ msgid "Toggle between flat and group sorted" #~ msgstr "Vaihda tasaisen ja ryhmäjärjestyksen välillä" #~ msgid "Choose action" #~ msgstr "Valitse toiminto" #~ msgid "Active Directory with SFU" #~ msgstr "Aktiivihakemisto SFU:lla" #~ msgid "Active Directory with Winbind" #~ msgstr "Aktiivihakemisto Winbind:llä" #~ msgid "Use information stored in local files for all authentication" #~ msgstr "" #~ "Käytä paikallisiin tiedostoihin tallennettuja tietoja kaikkeen " #~ "todentamiseen" #~ msgid "Active Directory with SFU:" #~ msgstr "Aktiivihakemisto SFU:lla:" #~ msgid "Active Directory with Winbind:" #~ msgstr "Aktiivihakemisto Winbind:llä:" #~ msgid "" #~ "Winbind allows the system to authenticate users in a Windows Active " #~ "Directory Server." #~ msgstr "" #~ "Winbind sallii käyttäjien todentamisen Windows Active Directory -" #~ "palvelimella." #~ msgid "Authentication LDAP" #~ msgstr "Tunnistus: LDAP" #~ msgid "TLS" #~ msgstr "TLS" #~ msgid "SSL" #~ msgstr "SSL" #~ msgid "security layout (SASL/Kerberos)" #~ msgstr "turva-asetukset (SASL/Kerberos)" #~ msgid "Authentication Active Directory" #~ msgstr "Tunnistus: Aktiivihakemisto" #~ msgid "LDAP users database" #~ msgstr "LDAP käyttäjätietokanta" #~ msgid "LDAP user allowed to browse the Active Directory" #~ msgstr "LDAP käyttäjä saa selata Aktiivihakemistoa" #~ msgid "Authentication NIS" #~ msgstr "Tunnistus: NIS" #~ msgid "" #~ "For this to work for a W2K PDC, you will probably need to have the admin " #~ "run: C:\\>net localgroup \"Pre-Windows 2000 Compatible Access\" everyone /" #~ "add and reboot the server.\n" #~ "You will also need the username/password of a Domain Admin to join the " #~ "machine to the Windows(TM) domain.\n" #~ "If networking is not yet enabled, Drakx will attempt to join the domain " #~ "after the network setup step.\n" #~ "Should this setup fail for some reason and domain authentication is not " #~ "working, run 'smbpasswd -j DOMAIN -U USER%%PASSWORD' using your Windows" #~ "(tm) Domain, and Admin Username/Password, after system boot.\n" #~ "The command 'wbinfo -t' will test whether your authentication secrets are " #~ "good." #~ msgstr "" #~ "Jotta tämä toimisi W2K PDC kanssa, sinun pitää todennäköisesti pyytää sen " #~ "järjestelmävalvojaa suorittamaan: C:\\>net localgroup \"Pre-Windows 2000 " #~ "Compatible Access\" everyone /add ja käynnistämään palvelin uudelleen.\n" #~ "Tarvitset myös verkkoalueen ylläpitäjän tunnusta liittääksesi koneesi " #~ "Windows(TM) verkkoalueeseen.\n" #~ "Jos verkkoa ei ole vielä asetettu, DrakX yrittää liittyä verkkoalueeseen " #~ "kun verkon asetusvaihe on tehty.\n" #~ "Jos tämä asetus epäonnistuu jostain syystä ja verkkoalueen tunnistus ei " #~ "toimi, suorita: 'smbpasswd -j VERKKOALUE -U KÄYTTÄJÄ%%SALASANA' käyttäen " #~ "Windows verkkoaluetta ja verkkoalueen ylläpitäjän tunnusta/salasanaa " #~ "käynnistyksen jälkeen.\n" #~ "Komento 'wbinfo -t' tarkistaa jos tunnistuksen salaisuudet ovat kunnossa." #~ msgid "Authentication Windows Domain" #~ msgstr "Tunnistus: Windows verkkoalue" #~ msgid "Undo" #~ msgstr "Peruuta" #~ msgid "Save partition table" #~ msgstr "Tallenna osiotaulu" #~ msgid "Restore partition table" #~ msgstr "Palauta osiotaulu" #~ msgid "" #~ "The backup partition table has not the same size\n" #~ "Still continue?" #~ msgstr "" #~ "Osiotaulun varmuuskopio ei ole saman kokoinen\n" #~ "Jatketaanko silti?" #~ msgid "Info: " #~ msgstr "Tietoja: " #~ msgid "Unknown driver" #~ msgstr "Tuntematon ajuri" #~ msgid "Error reading file %s" #~ msgstr "Virhe lukiessa tiedostoa %s" #~ msgid "Restoring from file %s failed: %s" #~ msgstr "Palautus tiedostosta %s epäonnistui: %s" #~ msgid "Bad backup file" #~ msgstr "Huono varmuuskopiotiedosto" #~ msgid "Error writing to file %s" #~ msgstr "Virhe kirjoitettaessa tiedostoon %s" #~ msgid "Error: The \"%s\" driver for your sound card is unlisted" #~ msgstr "Virhe: Ajuri \"%s\" äänikortillesi ei ole listattu" #~ msgid "Ext2" #~ msgstr "Ext2" #~ msgid "Journalised FS" #~ msgstr "Journaloitu FS" #~ msgid "Starts the X Font Server (this is mandatory for Xorg to run)." #~ msgstr "" #~ "Käynnistää X-kirjasinpalvelimen (pakollinen, jos haluat ajaa Xorg:a)" #~ msgid "Add user" #~ msgstr "Lisää käyttäjä" #~ msgid "Accept user" #~ msgstr "Hyväksy käyttäjä" #, fuzzy #~ msgid "" #~ "Do not update directory inode access times on this filesystem\n" #~ "(e.g, for faster access on the news spool to speed up news servers)." #~ msgstr "" #~ "Älä päivitä inoodien käyttöaikaa tässä tiedostojärjestelmässä\n" #~ "(esim. nopeampaan uutisspoolin käyttöön nopeuttamaan uutispalvelimia)." #~ msgid "No supermount" #~ msgstr "Ei Supermount" #~ msgid "Supermount" #~ msgstr "Supermount" #~ msgid "Supermount except for CDROM drives" #~ msgstr "Supermount mutta ei CDROM asemille" #~ msgid "Rescue partition table" #~ msgstr "Pelasta osiotaulu" #~ msgid "Removable media automounting" #~ msgstr "Vaihdettavan median automaattinen liittäminen" #~ msgid "Trying to rescue partition table" #~ msgstr "Yritetään pelastaa osiotaulu" #~ msgid "Accept/Refuse bogus IPv4 error messages." #~ msgstr "Hyväksy / Hylkää virheelliset IPv4 virheviestit." #~ msgid "Accept/Refuse broadcasted icmp echo." #~ msgstr "Hyväksy / Hylkää kuulutetut icmp echo viestit." #~ msgid "Accept/Refuse icmp echo." #~ msgstr "Hyväksy / Hylkää icmp echo viestit." #~ msgid "Allow/Forbid remote root login." #~ msgstr "Salli / Estä root sisäänkirjautuminen etäyhteyksiltä." #~ msgid "Enable/Disable IP spoofing protection." #~ msgstr "Ota käyttöön / poista käytöstä IP spoofing suojaus." #~ msgid "Enable/Disable libsafe if libsafe is found on the system." #~ msgstr "" #~ "Ota käyttöön / poista käytöstä libsafe jos se löytyy järjestelmästä." #~ msgid "Enable/Disable the logging of IPv4 strange packets." #~ msgstr "" #~ "Ota käyttöön / poista käytöstä epätavallisten IPv4 pakettien kirjaaminen " #~ "lokiin." #~ msgid "Enable/Disable msec hourly security check." #~ msgstr "" #~ "Ota käyttöön / poista käytöstä msec turvallisuustarkistukset joka tunti." #~ msgid "Number of capture buffers:" #~ msgstr "Kaappauspuskurien määrä:" #~ msgid "number of capture buffers for mmap'ed capture" #~ msgstr "mmap-kaappauspuskurien määrä:" #~ msgid "PLL setting:" #~ msgstr "PLL asetus:" #~ msgid "Radio support:" #~ msgstr "Radiotuki:" #~ msgid " [--skiptest] [--cups] [--lprng] [--lpd] [--pdq]" #~ msgstr " [--skiptest] [--cups] [--lprng] [--lpd] [--pdq]"