aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
blob: dbff81fa006b2d0d4cfac7a11f878a5780670bfa (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
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
/* Copyright (c) 2002, 2003, 2004, 2005 MandrakeSoft SA
 * Copyright (c) 2005, 2006, 2007, 2008 Mandriva SA
 * Copyright (c) 2011-2016 Mageia
 *
 * All rights reserved.
 * This program is free software; you can redistribute it and/or
 * modify it under the same terms as Perl itself.
 *
 * 
 */
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include <inttypes.h>
#define MATH_INT64_NATIVE_IF_AVAILABLE
#include "perl_math_int64.h"

#include <sys/utsname.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <unistd.h>
#include <libintl.h>

// fix compiling (error: conflicting types for ‘fflush’):
#undef Fflush
#undef Mkdir
#undef Stat
#undef Fstat

static inline void *_free(const void * p) {
  if (p != NULL) free((void *)p); 
  return NULL;
}
typedef struct rpmSpec_s * Spec;

#include <rpm/rpmio.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmts.h>
#include <rpm/rpmte.h>
#include <rpm/rpmps.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmcli.h>
#include <rpm/rpmbuild.h>
#include <rpm/rpmlog.h>

struct s_Package {
  Header h;
  uint64_t filesize;
  unsigned flag;
  char *info;
  char *requires;
  char *recommends;
  char *obsoletes;
  char *conflicts;
  char *provides;
  char *rflags;
  char *summary;
};

struct s_Transaction {
  rpmts ts;
  int count;
};

struct s_TransactionData {
  SV* callback_open;
  SV* callback_close;
  SV* callback_trans;
  SV* callback_uninst;
  SV* callback_inst;
  SV* callback_error;
  SV* callback_elem;
  long min_delta;
  SV *data; /* chain with another data user provided */
};

typedef struct s_Transaction* URPM__DB;
typedef struct s_Transaction* URPM__Transaction;
typedef struct s_Package* URPM__Package;

/*
 * URPM__Package->flag is an unsigned int:
 * bit :  significance
 * 0..20: ID
 * 21-23: rate
 * 24:    BASE
 * 25:    SKIP
 * 26:    DISABLE_OBSOLETE
 * 27:    INSTALLED
 * 28:    REQUESTED
 * 29:    REQUIRED
 * 30:    UPGRADE
 * 31:    NO_HEADER_FREE
 * */

#define FLAG_ID_MASK          0x001fffffU
#define FLAG_RATE_MASK        0x00e00000U
#define FLAG_BASE             0x01000000U
#define FLAG_SKIP             0x02000000U
#define FLAG_DISABLE_OBSOLETE 0x04000000U
#define FLAG_INSTALLED        0x08000000U
#define FLAG_REQUESTED        0x10000000U
#define FLAG_REQUIRED         0x20000000U
#define FLAG_UPGRADE          0x40000000U
#define FLAG_NO_HEADER_FREE   0x80000000U

#define FLAG_ID_MAX           0x001ffffe
#define FLAG_ID_INVALID       0x001fffff

#define FLAG_RATE_POS         21
#define FLAG_RATE_MAX         5
#define FLAG_RATE_INVALID     0


#define FILTER_MODE_ALL_FILES     0
#define FILTER_MODE_DOC_FILES     1
#define FILTER_MODE_CONF_FILES    2

static ssize_t write_nocheck(int fd, const void *buf, size_t count) {
  return write(fd, buf, count);
}
static int rpmError_callback_data;

static int rpmError_callback(rpmlogRec rec, rpmlogCallbackData data) {
  write_nocheck(rpmError_callback_data, rpmlogRecMessage(rec), strlen(rpmlogRecMessage(rec)));
  return RPMLOG_DEFAULT;
}

static inline int _run_cb_while_traversing(SV *callback, Header header, VOL I32 flags) {
     dSP;
     URPM__Package pkg = calloc(1, sizeof(struct s_Package));

     pkg->flag = FLAG_ID_INVALID | FLAG_NO_HEADER_FREE;
     pkg->h = header;

     PUSHMARK(SP);
     mXPUSHs(sv_setref_pv(newSVpvs(""), "URPM::Package", pkg));
     PUTBACK;

     int count = call_sv(callback, G_SCALAR | flags);

     SPAGAIN;
     pkg->h = NULL; /* avoid using it anymore, in case it has been copied inside callback */
     return count;
}

static inline  void _header_free(URPM__Package pkg) {
     if (pkg->h && !(pkg->flag & FLAG_NO_HEADER_FREE))
          pkg->h = headerFree(pkg->h);
}

static int rpm_codeset_is_utf8 = 0;

static SV*
newSVpv_utf8(const char *s, STRLEN len)
{
  SV *sv = newSVpv(s, len);
  SvUTF8_on(sv);
  return sv;
}

static void
get_fullname_parts(URPM__Package pkg, char **name, char **version, char **release, char **arch, char **eos) {
  char *_version = NULL, *_release = NULL, *_arch = NULL, *_eos = NULL;

  if (!pkg->info)
    return;
  if ((_eos = strchr(pkg->info, '@')) != NULL) {
    *_eos = 0; /* mark end of string to enable searching backwards */
    if ((_arch = strrchr(pkg->info, '.')) != NULL) {
      *_arch = 0;
      if ((release != NULL || version != NULL || name != NULL) && (_release = strrchr(pkg->info, '-')) != NULL) {
	*_release = 0;
	if ((version != NULL || name != NULL) && (_version = strrchr(pkg->info, '-')) != NULL) {
	  if (name != NULL) *name = pkg->info;
	  if (version != NULL) *version = _version + 1;
	}
	if (release != NULL) *release = _release + 1;
	*_release = '-';
      }
      if (arch != NULL) *arch = _arch + 1;
      *_arch = '.';
    }
    if (eos != NULL) *eos = _eos;
    *_eos = '@';
  }
}

static char *
get_name(const Header header, rpmTag tag) {
  struct rpmtd_s val;

  headerGet(header, tag, &val, HEADERGET_MINMEM);
  char *name = (char *) rpmtdGetString(&val);
  return name ? name : "";
}

static char*
get_arch(const Header header) {
     return headerIsEntry(header, RPMTAG_SOURCERPM) ? get_name(header, RPMTAG_ARCH) : "src";
}

static uint64_t
get_int(const Header header, rpmTag tag) {
  struct rpmtd_s val;

  headerGet(header, tag, &val, HEADERGET_ALLOC);
  return rpmtdGetNumber(&val);
}

static uint64_t
get_int2(const Header header, rpmTag newtag, rpmTag oldtag) {
  struct rpmtd_s val;

  if (!headerGet(header, newtag, &val, HEADERGET_DEFAULT))
      headerGet(header, oldtag, &val, HEADERGET_DEFAULT);
  return rpmtdGetNumber(&val);
}

static uint64_t
get_filesize(const Header h) {
  return get_int2(h, RPMTAG_LONGSIGSIZE, RPMTAG_SIGSIZE) + 440; /* 440 is the rpm header size (?) empirical, but works */
}

static int
print_list_entry(char *buff, int sz, const char *name, rpmsenseFlags flags, const char *evr) {
  int len = strlen(name);
  char *p = buff;

  if (len >= sz || !strncmp(name, "rpmlib(", 7))
    return -1;
  memcpy(p, name, len); p += len;

  if (flags & (RPMSENSE_PREREQ|RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POSTUN|RPMSENSE_SCRIPT_POST)) {
    if (p - buff + 3 >= sz)
      return -1;
    memcpy(p, "[*]", 4); p += 3;
  }
  if (evr != NULL) {
    len = strlen(evr);
    if (len > 0) {
      if (p - buff + 6 + len >= sz)
        return -1;
      *p++ = '[';
      if (flags & RPMSENSE_LESS) *p++ = '<';
      if (flags & RPMSENSE_GREATER) *p++ = '>';
      if (flags & RPMSENSE_EQUAL) *p++ = '=';
      if ((flags & (RPMSENSE_LESS|RPMSENSE_EQUAL|RPMSENSE_GREATER)) == RPMSENSE_EQUAL) *p++ = '=';
      *p++ = ' ';
      memcpy(p, evr, len); p+= len;
      *p++ = ']';
    }
  }
  *p = 0; /* make sure to mark null char, Is it really necessary ? */

  return p - buff;
}

static int
ranges_overlap(rpmsenseFlags aflags, char *sa, rpmsenseFlags bflags, char *sb) {
  if (!aflags || !bflags)
    return 1; /* really faster to test it there instead of later */
  else {
    int res;
    char *eosa = strchr(sa, ']');
    char *eosb = strchr(sb, ']');
    rpmds dsa, dsb;

    if (eosa) *eosa = 0;
    if (eosb) *eosb = 0;

    dsa = rpmdsSingle(RPMTAG_REQUIRENAME, "", sa, aflags);
    dsb = rpmdsSingle(RPMTAG_REQUIRENAME, "", sb, bflags);
    res = rpmdsCompare(dsa, dsb);
    rpmdsFree(dsa);
    rpmdsFree(dsb);

    if (eosb) *eosb = ']';
    if (eosa) *eosa = ']';

    return res;
  }
}

typedef int (*callback_list_str)(char *s, int slen, const char *name, const rpmsenseFlags flags, const char *evr, void *param);

static int
callback_list_str_xpush(char *s, int slen, const char *name, rpmsenseFlags flags, const char *evr, __attribute__((unused)) void *param) {
  dSP;
  if (s)
    mXPUSHs(newSVpv(s, slen));
  else {
    char buff[4096];
    int len = print_list_entry(buff, sizeof(buff)-1, name, flags, evr);
    if (len >= 0)
      mXPUSHs(newSVpv(buff, len));
  }
  PUTBACK;
  /* returning zero indicates to continue processing */
  return 0;
}

struct cb_overlap_s {
  rpmsenseFlags flags;
  int direction; /* indicate to compare the above at left or right to the iteration element */
  char *name;
  char *evr;
};

static int
callback_list_str_overlap(char *s, int slen, const char *name, rpmsenseFlags flags, const char *evr, void *param) {
  struct cb_overlap_s *os = (struct cb_overlap_s *)param;
  int result = 0;
  char *eos = NULL;
  char *eon = NULL;
  char eosc = '\0';
  char eonc = '\0';

  /* we need to extract name, flags and evr from a full sense information, store result in local copy */
  if (s) {
    if (slen) {
      eos = s + slen;
      eosc = *eos;
      *eos = 0;
    }
    name = s;
    while (*s && *s != ' ' && *s != '[' && *s != '<' && *s != '>' && *s != '=') ++s;
    if (*s) {
      eon = s;
      while (*s) {
	if (*s == ' ' || *s == '[' || *s == '*' || *s == ']');
	else if (*s == '<') flags |= RPMSENSE_LESS;
	else if (*s == '>') flags |= RPMSENSE_GREATER;
	else if (*s == '=') flags |= RPMSENSE_EQUAL;
	else break;
	++s;
      }
      evr = s;
    } else
      evr = "";
  }

  /* mark end of name */
  if (eon) {
       eonc = *eon;
       *eon = 0;
  }
  /* names should be equal, else it will not overlap */
  if (!strcmp(name, os->name)) {
    /* perform overlap according to direction needed, negative for left */
    if (os->direction < 0)
      result = ranges_overlap(os->flags, os->evr, flags, (char *) evr);
    else
      result = ranges_overlap(flags, (char *) evr, os->flags, os->evr);
  }

  /* fprintf(stderr, "cb_list_str_overlap result=%d, os->direction=%d, os->name=%s, os->evr=%s, name=%s, evr=%s\n",
     result, os->direction, os->name, os->evr, name, evr); */

  /* restore s if needed */
  if (eon) *eon = eonc;
  if (eos) *eos = eosc;

  return result;
}

static int
return_list_str(char *s, const Header header, rpmTag tag_name, rpmTag tag_flags, rpmTag tag_version, callback_list_str f, void *param) {
  int count = 0;

  if (s != NULL) {
    char *ps = strchr(s, '@');
    if (tag_flags && tag_version) {
      while(ps != NULL) {
	++count;
	if (f(s, ps-s, NULL, 0, NULL, param))
          return -count;
	s = ps + 1; ps = strchr(s, '@');
      }
      ++count;
      if (f(s, 0, NULL, 0, NULL, param))
        return -count;
    } else {
      char *eos;
      while(ps != NULL) {
	*ps = 0; eos = strchr(s, '['); if (!eos) eos = strchr(s, ' ');
	++count;
	if (f(s, eos ? eos-s : ps-s, NULL, 0, NULL, param)) {
          *ps = '@';
          return -count;
        }
	*ps = '@'; /* restore in memory modified char */
	s = ps + 1; ps = strchr(s, '@');
      }
      eos = strchr(s, '['); if (!eos) eos = strchr(s, ' ');
      ++count;
      if (f(s, eos ? eos-s : 0, NULL, 0, NULL, param))
         return -count;
    }
  } else if (header) {
    struct rpmtd_s list, flags, list_evr;

    if (headerGet(header, tag_name, &list, HEADERGET_EXT)) {
      memset((void*)&flags, 0, sizeof(flags));
      memset((void*)&list_evr, 0, sizeof(list_evr));
      if (tag_flags) headerGet(header, tag_flags, &flags, HEADERGET_DEFAULT);
      if (tag_version) headerGet(header, tag_version, &list_evr, HEADERGET_DEFAULT);
      while (rpmtdNext(&list) >= 0) {
	++count;
	uint32_t *flag = rpmtdNextUint32(&flags);
	if (f(NULL, 0, rpmtdGetString(&list), flag ? *flag : 0, 
	      rpmtdNextString(&list_evr), param)) {
	  rpmtdFreeData(&list);
	  if (tag_flags) rpmtdFreeData(&flags);
	  if (tag_version) rpmtdFreeData(&list_evr);
	  return -count;
	}
      }
      rpmtdFreeData(&list);
      if (tag_flags) rpmtdFreeData(&flags);
      if (tag_version) rpmtdFreeData(&list_evr);
    }
  }
  return count;
}

static int
xpush_simple_list_str(const Header header, rpmTag tag_name) {
  dSP;
  if (header) {
    struct rpmtd_s list;
    const char *val;
    int size;

    if (!headerGet(header, tag_name, &list, HEADERGET_DEFAULT))
        return 0;
    size = rpmtdCount(&list);

    EXTEND(SP, size);
    while ((val = rpmtdNextString(&list)))
        mPUSHs(newSVpv(val, 0));
    rpmtdFreeData(&list);
    PUTBACK;
    return size;
  } else return 0;
}

static void
return_list_number(const Header header, rpmTag tag_name) {
  dSP;
  if (header) {
    struct rpmtd_s list;
    if (headerGet(header, tag_name, &list, HEADERGET_DEFAULT)) {
      int count = rpmtdCount(&list);
      int i;
      EXTEND(SP, count);
      for(i = 0; i < count; i++) {
	rpmtdNext(&list);
	mPUSHs(newSViv(rpmtdGetNumber(&list)));
      }
      rpmtdFreeData(&list);
    }
  }
  PUTBACK;
}

static void
return_list_tag_modifier(const Header header, rpmTag tag_name) {
  dSP;
  int i;
  struct rpmtd_s td;
  if (!headerGet(header, tag_name, &td, HEADERGET_DEFAULT))
    return;
  int count = rpmtdCount(&td);
  rpmtdInit(&td);

  for (i = 0; i < count; i++) {
    char buff[15];
    char *s = buff;
    int32_t tag;
    rpmtdNext(&td);
    tag = rpmtdGetNumber(&td);

    if (tag_name == RPMTAG_FILEFLAGS) {
      if (tag & RPMFILE_CONFIG)    *s++ = 'c';
      if (tag & RPMFILE_DOC)       *s++ = 'd';
      if (tag & RPMFILE_GHOST)     *s++ = 'g';
      if (tag & RPMFILE_LICENSE)   *s++ = 'l';
      if (tag & RPMFILE_MISSINGOK) *s++ = 'm';
      if (tag & RPMFILE_NOREPLACE) *s++ = 'n';
      if (tag & RPMFILE_SPECFILE)  *s++ = 'S';
      if (tag & RPMFILE_README)    *s++ = 'R';
      if (tag & RPMFILE_ICON)      *s++ = 'i';
      if (tag & RPMFILE_PUBKEY)    *s++ = 'p';
    } else {
      rpmtdFreeData(&td);
      return;  
    }
    *s = '\0';
    mXPUSHs(newSVpv(buff, strlen(buff)));
  }
  rpmtdFreeData(&td);
  PUTBACK;
}

static void
return_list_tag(const URPM__Package pkg, rpmTag tag_name) {
  dSP;
  if (pkg->h != NULL) {
    struct rpmtd_s td;
    if (headerGet(pkg->h, tag_name, &td, HEADERGET_DEFAULT)) {
      int32_t count = rpmtdCount(&td);
      if (tag_name == RPMTAG_ARCH)
	mXPUSHs(newSVpv(get_arch(pkg->h), 0));
      else
	switch (rpmtdType(&td)) {
	  case RPM_NULL_TYPE:
	    break;
	  case RPM_CHAR_TYPE:
	  case RPM_INT8_TYPE:
	  case RPM_INT16_TYPE:
	  case RPM_INT32_TYPE:
	    {
	      int i;
              EXTEND(SP, count);
	      for (i=0; i < count; i++) {
		rpmtdNext(&td);
		mPUSHs(newSViv(rpmtdGetNumber(&td)));
	      }
	    }
	    break;
	  case RPM_STRING_TYPE:
	    mPUSHs(newSVpv(rpmtdGetString(&td), 0));
	    break;
	  case RPM_BIN_TYPE:
	    break;
	  case RPM_STRING_ARRAY_TYPE:
	    {
	      int i;
              EXTEND(SP, count);
              rpmtdInit(&td);
	      for (i = 0; i < count; i++)
		mPUSHs(newSVpv(rpmtdNextString(&td), 0));
	    }
	    break;
	  case RPM_I18NSTRING_TYPE:
	    break;
	  case RPM_INT64_TYPE:
	    break;
	}
    }
  } else {
    char *name, *version, *release, *arch, *eos, *data = NULL;
    int len;
    switch (tag_name) {
      case RPMTAG_NAME:
	{
	  get_fullname_parts(pkg, &name, &version, &release, &arch, &eos);
	  data = name;
	  len = version-name;
	}
	break;
      case RPMTAG_VERSION:
	{
	  get_fullname_parts(pkg, &name, &version, &release, &arch, &eos);
	  data = version;
	  len = release-version;
	}
	break;
      case RPMTAG_RELEASE:
	{
	  get_fullname_parts(pkg, &name, &version, &release, &arch, &eos);
	  data = release;
	  len = arch-release;
	}
	break;
      case RPMTAG_ARCH:
	{
	  get_fullname_parts(pkg, &name, &version, &release, &arch, &eos);
	  mXPUSHs(newSVpv(arch, eos-arch));
	}
	break;
      case RPMTAG_SUMMARY:
	mXPUSHs(newSVpv(pkg->summary, 0));
	break;
      default:
	croak("unexpected tag %s", rpmTagGetName(tag_name));
	break;
    }
    if (data) {
      if (len < 1) croak("invalid fullname");
      mXPUSHs(newSVpv(data, len - 1));
    }
  }
  PUTBACK;
}


static void
return_files(const Header header, int filter_mode) {
  dSP;
  if (header) {
    char buff[4096];
    char *p; const char *s;
    STRLEN len;
    unsigned int i;

    struct rpmtd_s td_flags, td_fmodes;
    int32_t *flags = NULL;
    if (filter_mode) {
      headerGet(header, RPMTAG_FILEFLAGS, &td_flags, HEADERGET_DEFAULT);
      headerGet(header, RPMTAG_FILEMODES, &td_fmodes, HEADERGET_DEFAULT);
      flags = td_flags.data;
    }

    struct rpmtd_s td_baseNames, td_dirIndexes, td_dirNames, td_list;
    headerGet(header, RPMTAG_BASENAMES, &td_baseNames, HEADERGET_DEFAULT);
    headerGet(header, RPMTAG_DIRINDEXES, &td_dirIndexes, HEADERGET_DEFAULT);
    headerGet(header, RPMTAG_DIRNAMES, &td_dirNames, HEADERGET_DEFAULT);

    char **baseNames = td_baseNames.data;
    char **dirNames = td_dirNames.data;
    int32_t *dirIndexes = td_dirIndexes.data;
    int is_oldfilenames = !baseNames || !dirNames || !dirIndexes;

    if (is_oldfilenames) {
      if (!headerGet(header, RPMTAG_OLDFILENAMES, &td_list, HEADERGET_DEFAULT))
        return;
      rpmtdInit(&td_list);
    }

    rpm_count_t count = is_oldfilenames ? rpmtdCount(&td_list) : rpmtdCount(&td_baseNames);
    for(i = 0; i < count; i++) {
      if (is_oldfilenames) {
	s = rpmtdNextString(&td_list);
	len = strlen(s);
      } else {
	len = strlen(dirNames[dirIndexes[i]]);
	if (len >= sizeof(buff)) continue;
	memcpy(p = buff, dirNames[dirIndexes[i]], len + 1); p += len;
	len = strlen(baseNames[i]);
	if (p - buff + len >= sizeof(buff)) continue;
	memcpy(p, baseNames[i], len + 1); p += len;
	s = buff;
	len = p-buff;
      }

      if (filter_mode) {
	if ((filter_mode & FILTER_MODE_CONF_FILES) && flags && (flags[i] & RPMFILE_CONFIG) == 0) continue;
	if ((filter_mode & FILTER_MODE_DOC_FILES) && flags && (flags[i] & RPMFILE_DOC) == 0) continue;
      }

      mXPUSHs(newSVpv(s, len));
    }

    rpmtdFreeData(&td_baseNames);
    rpmtdFreeData(&td_dirNames);
    if (is_oldfilenames)
      rpmtdFreeData(&td_list);
  }
  PUTBACK;
}

static void
return_problems(rpmps ps, int translate_message, int raw_message) {
  dSP;
  if (ps && rpmpsNumProblems(ps) > 0) {
    rpmpsi iterator = rpmpsInitIterator(ps);
    while (rpmpsNextIterator(iterator) >= 0) {
      rpmProblem p = rpmpsGetProblem(iterator);

      if (translate_message) {
	/* translate error using rpm localization */
	const char *buf = rpmProblemString(p);
	SV *sv = newSVpv(buf, 0);
	if (rpm_codeset_is_utf8) SvUTF8_on(sv);
	mXPUSHs(sv);
	_free(buf);
      }
      if (raw_message) {
	const char *pkgNEVR = rpmProblemGetPkgNEVR(p) ? rpmProblemGetPkgNEVR(p) : "";
	const char *altNEVR = rpmProblemGetAltNEVR(p) ? rpmProblemGetAltNEVR(p) : "";
	const char *s = rpmProblemGetStr(p) ? rpmProblemGetStr(p) : "";
	SV *sv;

	switch (rpmProblemGetType(p)) {
	case RPMPROB_BADARCH:
	  sv = newSVpvf("badarch@%s", pkgNEVR); break;

	case RPMPROB_BADOS:
	  sv = newSVpvf("bados@%s", pkgNEVR); break;

	case RPMPROB_PKG_INSTALLED:
	  sv = newSVpvf("installed@%s", pkgNEVR); break;

	case RPMPROB_BADRELOCATE:
	  sv = newSVpvf("badrelocate@%s@%s", pkgNEVR, s); break;

	case RPMPROB_NEW_FILE_CONFLICT:
	case RPMPROB_FILE_CONFLICT:
	  sv = newSVpvf("conflicts@%s@%s@%s", pkgNEVR, altNEVR, s); break;

	case RPMPROB_OLDPACKAGE:
	  sv = newSVpvf("installed@%s@%s", pkgNEVR, altNEVR); break;

	case RPMPROB_DISKSPACE:
	  sv = newSVpvf("diskspace@%s@%s@%lld", pkgNEVR, s, (long long)rpmProblemGetDiskNeed(p)); break;
	case RPMPROB_DISKNODES:
	  sv = newSVpvf("disknodes@%s@%s@%lld", pkgNEVR, s, (long long)rpmProblemGetDiskNeed(p)); break;
	case RPMPROB_REQUIRES:
	  sv = newSVpvf("requires@%s@%s", pkgNEVR, altNEVR+2); break;

	case RPMPROB_CONFLICT:
	  sv = newSVpvf("conflicts@%s@%s", pkgNEVR, altNEVR+2); break;

	case RPMPROB_OBSOLETES:
	  sv = newSVpvf("obsoletes@%s@%s", pkgNEVR, altNEVR+2); break;

	default:
	  sv = newSVpvf("unknown@%s", pkgNEVR); break;
	}
	mXPUSHs(sv);
      }
    }
    rpmpsFreeIterator(iterator);
  }
  PUTBACK;
}

static char *
pack_list(const Header header, rpmTag tag_name, rpmTag tag_flags, rpmTag tag_version) {
  char buff[65536*2];
  char *p = buff;

  struct rpmtd_s td;
  if (headerGet(header, tag_name, &td, HEADERGET_EXT)) {
    char **list = td.data;
    char **list_evr = NULL;
    rpmTag *flags = NULL;
    unsigned int i;
    
    struct rpmtd_s td_flags, td_list_evr;
    if (tag_flags   && headerGet(header, tag_flags,   &td_flags, HEADERGET_DEFAULT))    flags    = td_flags.data;
    if (tag_version && headerGet(header, tag_version, &td_list_evr, HEADERGET_DEFAULT)) list_evr = td_list_evr.data;
    for(i = 0; i < rpmtdCount(&td); i++) {
      int len = print_list_entry(p, sizeof(buff)-(p-buff)-1, list[i], flags ? flags[i] : 0, list_evr ? list_evr[i] : NULL);
      if (len < 0) continue;
      p += len;
      *p++ = '@';
    }
    if (p > buff) p[-1] = 0;

    free(list);
    free(list_evr);
  }

  return p > buff ? memcpy(malloc(p-buff), buff, p-buff) : NULL;
}

static void
pack_header(const URPM__Package pkg) {
  if (pkg->h) {
    if (pkg->info == NULL) {
      char buff[1024];
      const char *p = buff;
      const char *nvr = headerGetAsString(pkg->h, RPMTAG_NVR);
      const char *arch = get_arch(pkg->h);
      p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%" PRIu64 "@%" PRIu64 "@%s", nvr, arch,
		    get_int(pkg->h, RPMTAG_EPOCH), get_int2(pkg->h, RPMTAG_LONGSIZE, RPMTAG_SIZE),
		    get_name(pkg->h, RPMTAG_GROUP));
      pkg->info = memcpy(malloc(p-buff), buff, p-buff);
    }
    if (pkg->filesize == 0) pkg->filesize = get_filesize(pkg->h);
    if (pkg->requires == NULL)
      pkg->requires = pack_list(pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIREVERSION);
    if (pkg->recommends == NULL)
      pkg->recommends = pack_list(pkg->h, RPMTAG_RECOMMENDNAME, 0, 0);
    if (pkg->obsoletes == NULL)
      pkg->obsoletes = pack_list(pkg->h, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETEVERSION);
    if (pkg->conflicts == NULL)
      pkg->conflicts = pack_list(pkg->h, RPMTAG_CONFLICTNAME, RPMTAG_CONFLICTFLAGS, RPMTAG_CONFLICTVERSION);
    if (pkg->provides == NULL)
      pkg->provides = pack_list(pkg->h, RPMTAG_PROVIDENAME, RPMTAG_PROVIDEFLAGS, RPMTAG_PROVIDEVERSION);
    if (pkg->summary == NULL) {
      char *summary = get_name(pkg->h, RPMTAG_SUMMARY);
      int len = 1 + strlen(summary);

      pkg->summary = memcpy(malloc(len), summary, len);
    }

    _header_free(pkg);
    pkg->h = NULL;
  }
}

static void
update_hash_entry(HV *hash, const char *name, STRLEN len, int force, IV use_sense, const URPM__Package pkg) {
  SV** isv;

  if (!len) len = strlen(name);
  if ((isv = hv_fetch(hash, name, len, force))) {
    /* check if an entry has been found or created, it should so be updated */
    if (!SvROK(*isv) || SvTYPE(SvRV(*isv)) != SVt_PVHV) {
      SV* choice_set = (SV*)newHV();
      if (choice_set) {
	SvREFCNT_dec(*isv); /* drop the old as we are changing it */
	if (!(*isv = newRV_noinc(choice_set))) {
	  SvREFCNT_dec(choice_set);
	  *isv = &PL_sv_undef;
	}
      }
    }
    if (isv && *isv != &PL_sv_undef) {
      char id[8];
      STRLEN id_len = snprintf(id, sizeof(id), "%d", pkg->flag & FLAG_ID_MASK);
      SV **sense = hv_fetch((HV*)SvRV(*isv), id, id_len, 1);
      if (sense && use_sense) sv_setiv(*sense, use_sense);
    }
  }
}

static void
update_provides(const URPM__Package pkg, HV *provides) {
  if (pkg->h) {
    int len;
    struct rpmtd_s td, td_flags;
    unsigned int i;

    /* examine requires for files which need to be marked in provides */
    if (headerGet(pkg->h, RPMTAG_REQUIRENAME, &td, HEADERGET_DEFAULT)) {
      for (i = 0; i < rpmtdCount(&td); ++i) {
	const char *s = rpmtdNextString(&td);
	len = strlen(s);
	if (s[0] == '/') (void)hv_fetch(provides, s, len, 1);
      }
    }

    /* update all provides */
    if (headerGet(pkg->h, RPMTAG_PROVIDENAME, &td, HEADERGET_DEFAULT)) {
      char **list = td.data;
      rpmsenseFlags *flags = NULL;
      if (headerGet(pkg->h, RPMTAG_PROVIDEFLAGS, &td_flags, HEADERGET_DEFAULT))
	flags = td_flags.data;
      for (i = 0; i < rpmtdCount(&td); ++i) {
	len = strlen(list[i]);
	if (!strncmp(list[i], "rpmlib(", 7)) continue;
	update_hash_entry(provides, list[i], len, 1, flags && flags[i] & (RPMSENSE_PREREQ|RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POSTUN|RPMSENSE_SCRIPT_POST|RPMSENSE_LESS|RPMSENSE_EQUAL|RPMSENSE_GREATER),
			     pkg);
      }
    }
  } else {
    char *ps, *s, *es;

    if ((s = pkg->requires) != NULL && *s != 0) {
      ps = strchr(s, '@');
      /* examine requires for files which need to be marked in provides */
      while(ps != NULL) {
	if (s[0] == '/') {
	  *ps = 0; es = strchr(s, '['); if (!es) es = strchr(s, ' '); *ps = '@';
	  (void)hv_fetch(provides, s, es != NULL ? es-s : ps-s, 1);
	}
	s = ps + 1; ps = strchr(s, '@');
      }
      if (s[0] == '/') {
      es = strchr(s, '['); if (!es) es = strchr(s, ' ');
	(void)hv_fetch(provides, s, es != NULL ? (U32)(es-s) : strlen(s), 1);
      }
    }

    /* update all provides */
    if ((s = pkg->provides) != NULL && *s != 0) {
      ps = strchr(s, '@');
      while(ps != NULL) {
	*ps = 0; es = strchr(s, '['); if (!es) es = strchr(s, ' '); *ps = '@';
	update_hash_entry(provides, s, es != NULL ? es-s : ps-s, 1, es != NULL, pkg);
	s = ps + 1; ps = strchr(s, '@');
      }
      es = strchr(s, '['); if (!es) es = strchr(s, ' ');
      update_hash_entry(provides, s, es != NULL ? es-s : 0, 1, es != NULL, pkg);
    }
  }
}

static void
update_obsoletes(const URPM__Package pkg, HV *obsoletes) {
  if (pkg->h) {
    struct rpmtd_s td;

    /* update all provides */
    if (headerGet(pkg->h, RPMTAG_OBSOLETENAME, &td, HEADERGET_DEFAULT)) {
      unsigned int i;
      for (i = 0; i < rpmtdCount(&td); ++i)
	update_hash_entry(obsoletes, rpmtdNextString(&td), 0, 1, 0, pkg);
    }
  } else {
    char *ps, *s;

    if ((s = pkg->obsoletes) != NULL && *s != 0) {
      char *es;

      ps = strchr(s, '@');
      while(ps != NULL) {
	*ps = 0; es = strchr(s, '['); if (!es) es = strchr(s, ' '); *ps = '@';
	update_hash_entry(obsoletes, s, es != NULL ? es-s : ps-s, 1, 0, pkg);
	s = ps + 1; ps = strchr(s, '@');
      }
      es = strchr(s, '['); if (!es) es = strchr(s, ' ');
      update_hash_entry(obsoletes, s, es != NULL ? es-s : 0, 1, 0, pkg);
    }
  }
}

static void
update_provides_files(const URPM__Package pkg, HV *provides) {
  if (pkg->h) {
    STRLEN len;
    unsigned int i;

    struct rpmtd_s td_baseNames, td_dirIndexes, td_dirNames;
    if (headerGet(pkg->h, RPMTAG_BASENAMES, &td_baseNames, HEADERGET_DEFAULT) &&
	headerGet(pkg->h, RPMTAG_DIRINDEXES, &td_dirIndexes, HEADERGET_DEFAULT) &&
	headerGet(pkg->h, RPMTAG_DIRNAMES, &td_dirNames, HEADERGET_DEFAULT)) {

      char **baseNames = td_baseNames.data;
      char **dirNames = td_dirNames.data;
      int32_t *dirIndexes = td_dirIndexes.data;

      char buff[4096];
      char *p;

      for(i = 0; i < rpmtdCount(&td_baseNames); i++) {
	len = strlen(dirNames[dirIndexes[i]]);
	if (len >= sizeof(buff)) continue;
	memcpy(p = buff, dirNames[dirIndexes[i]], len + 1); p += len;
	len = strlen(baseNames[i]);
	if (p - buff + len >= sizeof(buff)) continue;
	memcpy(p, baseNames[i], len + 1); p += len;

	update_hash_entry(provides, buff, p-buff, 0, 0, pkg);
      }

      rpmtdFreeData(&td_baseNames);
      rpmtdFreeData(&td_dirNames);
    } else {
      struct rpmtd_s td;
      
      if (headerGet(pkg->h, RPMTAG_OLDFILENAMES, &td, HEADERGET_DEFAULT)) {
	for (i = 0; i < rpmtdCount(&td); i++)
	  update_hash_entry(provides, rpmtdNextString(&td), 0, 0, 0, pkg);

	rpmtdFreeData(&td);
      }
    }
  }
}

static FD_t
open_archive(char *filename, int *empty_archive) {
  int fd;
  FD_t rfd = NULL;
  struct {
    char header[4];
    char toc_d_count[4];
    char toc_l_count[4];
    char toc_f_count[4];
    char toc_str_size[4];
    char uncompress[40];
    char trailer[4];
  } buf;

  fd = open(filename, O_RDONLY);
  if (fd >= 0) {
    int pos = lseek(fd, -(int)sizeof(buf), SEEK_END);
    if (read(fd, &buf, sizeof(buf)) != sizeof(buf) || strncmp(buf.header, "cz[0", 4) || strncmp(buf.trailer, "0]cz", 4)) {
      /* this is not an archive, open it without magic, but first rewind at begin of file */
      lseek(fd, 0, SEEK_SET);
      rfd = fdDup(fd);
      close(fd);
      return rfd;
    } else if (pos == 0) {
      *empty_archive = 1;
    } else {
      /* this is an archive, prepare for reading with uncompress defined inside */
      rfd = Fopen(filename, "r.fdio");
      if (strcmp(buf.uncompress, "gzip"))
           rfd = Fdopen(rfd, "r.gzip");
      else if (strcmp(buf.uncompress, "bzip"))
           rfd = Fdopen(rfd, "r.bzip2");
      else if (strcmp(buf.uncompress, "xz") || strcmp(buf.uncompress, "lzma"))
           rfd = Fdopen(rfd, "r.xz");
      else {
           free(rfd);
           rfd = NULL;
      }
    }
  }
  close(fd); // we rely on EBADF in testsuite
  return rfd;
}

static int
call_package_callback(SV *urpm, SV *sv_pkg, SV *callback) {
  if (sv_pkg != NULL && callback != NULL) {
    int count;

    /* now, a callback will be called for sure */
    dSP;
    PUSHMARK(SP);
    EXTEND(SP, 2);
    PUSHs(urpm);
    PUSHs(sv_pkg);
    PUTBACK;
    count = call_sv(callback, G_SCALAR);
    SPAGAIN;
    if (count == 1 && !POPi) {
      /* package should not be added in depslist, so we free it */
      SvREFCNT_dec(sv_pkg);
      sv_pkg = NULL;
    }
    PUTBACK;
  }

  return sv_pkg != NULL;
}

static void
push_in_depslist(struct s_Package *_pkg, SV *urpm, AV *depslist, SV *callback, HV *provides, HV *obsoletes, int packing) {
    SV *sv_pkg = sv_setref_pv(newSVpvs(""), "URPM::Package", _pkg);
    if (call_package_callback(urpm, sv_pkg, callback)) {
      if (provides) {
	update_provides(_pkg, provides);
	update_provides_files(_pkg, provides);
      }
      if (obsoletes) update_obsoletes(_pkg, obsoletes);
      if (packing) pack_header(_pkg);
      av_push(depslist, sv_pkg);
    }
}

static int
parse_line(AV *depslist, HV *provides, HV *obsoletes, URPM__Package pkg, char *buff, SV *urpm, SV *callback) {
  char *tag, *data;

  if (buff[0] == 0)
    return 1;
  else if ((tag = buff)[0] == '@' && (data = strchr(tag+1, '@')) != NULL) {
    *tag++ = *data++ = 0;
    int data_len = 1+strlen(data);
    if (!strcmp(tag, "info")) {
      pkg->info = memcpy(malloc(data_len), data, data_len);
      pkg->flag &= ~FLAG_ID_MASK;
      pkg->flag |= 1 + av_len(depslist);
      URPM__Package _pkg = memcpy(malloc(sizeof(struct s_Package)), pkg, sizeof(struct s_Package));
      push_in_depslist(_pkg, urpm, depslist, callback, provides, obsoletes, 0);
      // reset package, next line will be for another one
      memset(pkg, 0, sizeof(struct s_Package));
    } else if (!strcmp(tag, "filesize"))
      pkg->filesize = atoll(data);
    else {
      char **ptr = NULL;
      if (!strcmp(tag, "requires"))
        ptr = &pkg->requires;
      else if (!strcmp(tag, "suggests") || !strcmp(tag, "recommends"))
        ptr = &pkg->recommends;
      else if (!strcmp(tag, "obsoletes"))
        ptr = &pkg->obsoletes;
      else if (!strcmp(tag, "conflicts"))
        ptr = &pkg->conflicts;
      else if (!strcmp(tag, "provides"))
        ptr = &pkg->provides;
      else if (!strcmp(tag, "summary"))
        ptr = &pkg->summary;

      if (ptr)
        free(*ptr), *ptr = memcpy(malloc(data_len), data, data_len);
    }
    return 1;
  } else {
    fprintf(stderr, "bad line <%s>\n", buff);
    return 0;
  }
}

#if 0
/*
 * this code is unused since August 2007 and hasn't work since MDK8.1 and rpm 4 (2001!!!).
 */
static void pack_rpm_header(Header *h) {
  Header packed = headerNew();

  HeaderIterator hi = headerInitIterator(*h);
  struct rpmtd_s td;
  while (headerNext(hi, &td)) {
      // fprintf(stderr, "adding %s %d\n", tagname(tag), c);
      headerPut(packed, &td, HEADERPUT_DEFAULT);
      rpmtdFreeData(&td);
  }

  headerFreeIterator(hi);
  *h = headerFree(*h);

  *h = packed;
}

static void drop_tags(Header *h) {
  headerDel(*h, RPMTAG_FILEUSERNAME); /* user ownership is correct */
  headerDel(*h, RPMTAG_FILEGROUPNAME); /* group ownership is correct */
  headerDel(*h, RPMTAG_FILEMTIMES); /* correct time without it */
  headerDel(*h, RPMTAG_FILEINODES); /* hardlinks work without it */
  headerDel(*h, RPMTAG_FILEDEVICES); /* it is the same number for every file */
  headerDel(*h, RPMTAG_FILESIZES); /* ? */
  headerDel(*h, RPMTAG_FILERDEVS); /* it seems unused. always empty */
  headerDel(*h, RPMTAG_FILEVERIFYFLAGS); /* only used for -V */
  headerDel(*h, RPMTAG_FILEDIGESTALGOS); /* only used for -V */
  headerDel(*h, RPMTAG_FILEDIGESTS); /* only used for -V */ /* alias: RPMTAG_FILEMD5S */ 
  /* keep RPMTAG_FILEFLAGS for %config (rpmnew) to work */
  /* keep RPMTAG_FILELANGS for %lang (_install_langs) to work */
  /* keep RPMTAG_FILELINKTOS for checking conflicts between symlinks */
  /* keep RPMTAG_FILEMODES otherwise it segfaults with excludepath */

  /* keep RPMTAG_POSTIN RPMTAG_POSTUN RPMTAG_PREIN RPMTAG_PREUN */
  /* keep RPMTAG_TRIGGERSCRIPTS RPMTAG_TRIGGERVERSION RPMTAG_TRIGGERFLAGS RPMTAG_TRIGGERNAME */
  /* small enough, and only in some packages. not needed per se */

  headerDel(*h, RPMTAG_ICON);
  headerDel(*h, RPMTAG_GIF);
  headerDel(*h, RPMTAG_EXCLUSIVE);
  headerDel(*h, RPMTAG_COOKIE);
  headerDel(*h, RPMTAG_VERIFYSCRIPT);

  /* always the same for our packages */
  headerDel(*h, RPMTAG_VENDOR);
  headerDel(*h, RPMTAG_DISTRIBUTION);

  /* keep RPMTAG_SIGSIZE, useful to tell the size of the rpm file (+440) */

  headerDel(*h, RPMTAG_DSAHEADER);
  headerDel(*h, RPMTAG_SHA1HEADER);
  headerDel(*h, RPMTAG_SIGMD5);
  headerDel(*h, RPMTAG_SIGGPG);

  pack_rpm_header(h);
}
#endif

static int
update_header(char *filename, URPM__Package pkg, __attribute__((unused)) int keep_all_tags, int vsflags) {
  int d = open(filename, O_RDONLY);

  if (d >= 0) {
    unsigned char sig[4];

    if (read(d, &sig, sizeof(sig)) == sizeof(sig)) {
      lseek(d, 0, SEEK_SET);
      // Is it RPM lead?
      if (sig[0] == 0xed && sig[1] == 0xab && sig[2] == 0xee && sig[3] == 0xdb) {
	FD_t fd = fdDup(d);
	Header header;
	rpmts ts;
	pkg->filesize = fdSize(fd);

	close(d);
	ts = rpmtsCreate();
	rpmtsSetVSFlags(ts, _RPMVSF_NOSIGNATURES | vsflags);
	if (fd != NULL && rpmReadPackageFile(ts, fd, filename, &header) == 0 && header) {
	  Fclose(fd);

	  _header_free(pkg);
	  pkg->h = header;
	  pkg->flag &= ~FLAG_NO_HEADER_FREE;

	  /*if (!keep_all_tags) drop_tags(&pkg->h);*/
	  (void)rpmtsFree(ts);
	  return 1;
	}
	(void)rpmtsFree(ts);
      } else if (sig[0] == 0x8e && sig[1] == 0xad && sig[2] == 0xe8 && sig[3] == 0x01) {
	// or is it RPM header magic?
	FD_t fd = fdDup(d);

	close(d);
	if (fd != NULL) {
	  _header_free(pkg);
	  pkg->h = headerRead(fd, HEADER_MAGIC_YES);
	  pkg->flag &= ~FLAG_NO_HEADER_FREE;
	  Fclose(fd);
	  return 1;
	}
      } else close(d);
    } else close(d);
  }
  return 0;
}

static int
read_config_files(int force) {
  static int already = 0;
  int rc = 0;

  if (!already || force) {
    rc = rpmReadConfigFiles(NULL, NULL);
    already = (rc == 0); /* set config as load only if it succeed */
  }
  return rc;
}

static rpmVSFlags
ts_nosignature(rpmts ts) {
  return rpmtsSetVSFlags(ts, _RPMVSF_NODIGESTS | _RPMVSF_NOSIGNATURES);
}

static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h,
					 const rpmCallbackType what, 
					 const rpm_loff_t amount, 
					 const rpm_loff_t total,
					 fnpyKey pkgKey,
					 rpmCallbackData data) {
  static struct timeval tprev;
  static struct timeval tcurr;
  static FD_t fd = NULL;
  long delta;
  int i;
  struct s_TransactionData *td = data;
  SV *callback = NULL;
  char *callback_type = NULL;
  char *callback_subtype = NULL;

  if (!td)
    return NULL;

  switch (what) {
    case RPMCALLBACK_INST_OPEN_FILE:
      callback = td->callback_open;
      callback_type = "open";
      break;
    case RPMCALLBACK_INST_CLOSE_FILE:
      callback = td->callback_close;
      callback_type = "close";
      break;
    case RPMCALLBACK_TRANS_START:
    case RPMCALLBACK_TRANS_PROGRESS:
    case RPMCALLBACK_TRANS_STOP:
      callback = td->callback_trans;
      callback_type = "trans";
      break;
    case RPMCALLBACK_UNINST_START:
    case RPMCALLBACK_UNINST_PROGRESS:
    case RPMCALLBACK_UNINST_STOP:
      callback = td->callback_uninst;
      callback_type = "uninst";
      break;
    case RPMCALLBACK_INST_START:
    case RPMCALLBACK_INST_PROGRESS:
    case RPMCALLBACK_INST_STOP:
      callback = td->callback_inst;
      callback_type = "inst";
      break;
    case RPMCALLBACK_SCRIPT_START:
    case RPMCALLBACK_SCRIPT_STOP:
      callback = td->callback_inst;
      callback_type = "script";
      break;
    case RPMCALLBACK_CPIO_ERROR:
    case RPMCALLBACK_SCRIPT_ERROR:
    case RPMCALLBACK_UNPACK_ERROR:
      callback = td->callback_error;
      callback_type = "error";
      break;
    case RPMCALLBACK_ELEM_PROGRESS:
      callback = td->callback_elem;
      callback_type = "elem";
      break;
    default:
      break;
  }

  if (callback != NULL) {
    switch (what) {
      case RPMCALLBACK_TRANS_START:
      case RPMCALLBACK_UNINST_START:
      case RPMCALLBACK_INST_START:
	callback_subtype = "start";
	gettimeofday(&tprev, NULL);
	break;
      case RPMCALLBACK_TRANS_PROGRESS:
      case RPMCALLBACK_UNINST_PROGRESS:
      case RPMCALLBACK_INST_PROGRESS:
	callback_subtype = "progress";
	gettimeofday(&tcurr, NULL);
	delta = 1000000 * (tcurr.tv_sec - tprev.tv_sec) + (tcurr.tv_usec - tprev.tv_usec);
	if (delta < td->min_delta && amount < total - 1)
	  callback = NULL; /* avoid calling too often a given callback */
	else
	  tprev = tcurr;
	break;
      case RPMCALLBACK_INST_STOP:
      case RPMCALLBACK_TRANS_STOP:
      case RPMCALLBACK_UNINST_STOP:
	callback_subtype = "stop";
	break;
      case RPMCALLBACK_CPIO_ERROR:
	callback_subtype = "cpio";
	break;
      case RPMCALLBACK_ELEM_PROGRESS:
	callback_subtype = "progress";
	break;
      case RPMCALLBACK_SCRIPT_ERROR:
	callback_subtype = "script";
	break;
      case RPMCALLBACK_UNPACK_ERROR:
	callback_subtype = "unpack";
	break;
      default:
	break;
    }

    if (callback != NULL) {
      /* now, a callback will be called for sure */
      dSP;
      ENTER;
      SAVETMPS;
      PUSHMARK(SP);
      EXTEND(SP, callback_subtype == NULL ? 3 : 6);
      PUSHs(td->data);
      mPUSHs(newSVpv(callback_type, 0));
      PUSHs(pkgKey != NULL ? sv_2mortal(newSViv((long)pkgKey - 1)) : &PL_sv_undef);
      if (callback_subtype != NULL) {
	mPUSHs(newSVpv(callback_subtype, 0));
	mPUSHs(newSViv(amount));
	mPUSHs(newSViv(total));
      }
      PUTBACK;
      i = call_sv(callback, callback == td->callback_open ? G_SCALAR : G_DISCARD);
      SPAGAIN;
      if (callback == td->callback_open) {
	if (i != 1) croak("callback_open should return a file handle");
	i = POPi;
	fd = fdDup(i);
	if (fd) {
	  fd = fdLink(fd);
	  Fcntl(fd, F_SETFD, (void *)1); /* necessary to avoid forked/execed process to lock removable media */
	}
	PUTBACK;
      } else if (callback == td->callback_close) {
	if (fd) {
	  Fclose(fd);
	  fd = NULL;
	}
      }
      FREETMPS;
      LEAVE;
    }
  }
  return callback == td->callback_open ? fd : NULL;
}

static rpmDbiTag
rpmtag_from_string(char *tag)
{
    if (!strcmp(tag, "name"))
      return RPMDBI_NAME;
    else if (!strcmp(tag, "whatprovides"))
      return RPMDBI_PROVIDENAME;
    else if (!strcmp(tag, "whatrequires"))
      return RPMDBI_REQUIRENAME;
    else if (!strcmp(tag, "whatconflicts"))
      return RPMDBI_CONFLICTNAME;
    else if (!strcmp(tag, "group"))
      return RPMDBI_GROUP;
    else if (!strcmp(tag, "triggeredby"))
      return RPMDBI_TRIGGERNAME;
    else if (!strcmp(tag, "path"))
      return RPMDBI_BASENAMES;
    else if (!strcmp(tag, "nvra"))
      return RPMDBI_LABEL;
    else croak("unknown tag [%s]", tag);
}

static unsigned mask_from_string(char *name) {
  unsigned mask;
  if (!strcmp(name, "skip")) mask = FLAG_SKIP;
  else if (!strcmp(name, "disable_obsolete")) mask = FLAG_DISABLE_OBSOLETE;
  else if (!strcmp(name, "installed")) mask = FLAG_INSTALLED;
  else if (!strcmp(name, "requested")) mask = FLAG_REQUESTED;
  else if (!strcmp(name, "required")) mask = FLAG_REQUIRED;
  else if (!strcmp(name, "upgrade")) mask = FLAG_UPGRADE;
  else croak("unknown flag: %s", name);
  return mask;
}

static int compare_evrs(int lepoch, char*lversion, char*lrelease, int repoch, char*rversion, char*rrelease) {
    int compare;
    compare = lepoch - repoch;
    if (!compare) {
      compare = rpmvercmp(lversion, rversion);
      if (!compare && rrelease)
	compare = rpmvercmp(lrelease, rrelease);
    }
    return compare;
}

static int get_e_v_r(URPM__Package pkg, int *epoch, char **version, char **release, char **arch) {
    if (pkg->info) {
      char *s, *eos;

      if ((s = strchr(pkg->info, '@')) != NULL) {
	if ((eos = strchr(s+1, '@')) != NULL)
          *eos = 0; /* mark end of string to enable searching backwards */
	*epoch = atoi(s+1);
	if (eos != NULL) *eos = '@';
      } else
	*epoch = 0;
      get_fullname_parts(pkg, NULL, version, release, arch, &eos);
      /* temporarily mark end of each substring */
      (*release)[-1] = 0;
      (*arch)[-1] = 0;
      return 1;
    } else if (pkg->h) {
      *epoch = get_int(pkg->h, RPMTAG_EPOCH);
      *version = get_name(pkg->h, RPMTAG_VERSION);
      *release = get_name(pkg->h, RPMTAG_RELEASE);
      *arch = get_arch(pkg->h);
      return 1;
    }
    return 0;
}


MODULE = URPM            PACKAGE = URPM::Package       PREFIX = Pkg_

void
Pkg_DESTROY(pkg)
  URPM::Package pkg
  CODE:
  free(pkg->info);
  free(pkg->requires);
  free(pkg->recommends);
  free(pkg->obsoletes);
  free(pkg->conflicts);
  free(pkg->provides);
  free(pkg->rflags);
  free(pkg->summary);
  _header_free(pkg);
  free(pkg);

void
Pkg_name(pkg)
  URPM::Package pkg
    ALIAS:
     version  = 1
     release  = 2
     arch     = 3
  PPCODE:
  if (pkg->info) {
    char *name, *version, *release, *arch, *eos;
    char *res;
    STRLEN end;

    get_fullname_parts(pkg, &name, &version, &release, &arch, &eos);
    switch (ix) {
    case 1:  res = version; end = release - version; break;
    case 2:  res = release; end = arch-release;      break;
    case 3:  res = arch;    end = eos-arch+1;        break;
    default: res = name;    end = version - name;
    }
    if (end < 1) croak("invalid fullname");
    mXPUSHs(newSVpv(res, end-1));
  } else if (pkg->h) {
    char *str;
    switch (ix) {
    case 1:  str = get_name(pkg->h, RPMTAG_VERSION); break;
    case 2:  str = get_name(pkg->h, RPMTAG_RELEASE); break;
    case 3:  str = get_arch(pkg->h); break;
    default: str = get_name(pkg->h, RPMTAG_NAME);
    }
    mXPUSHs(newSVpv(str, 0));
  }

void
Pkg_EVR(pkg)
  URPM::Package pkg
  PPCODE:
    if (pkg->info) {
      char *s, *eos;
      char *version, *arch;
      int epoch;

      if ((s = strchr(pkg->info, '@')) != NULL) {
	if ((eos = strchr(s+1, '@')) != NULL)
          *eos = 0; /* mark end of string to enable searching backwards */
	epoch = atoi(s+1);
	if (eos != NULL) *eos = '@';
      } else
	epoch = 0;
      get_fullname_parts(pkg, NULL, &version, NULL, &arch, &eos);
      if (epoch == 0)
         mXPUSHs(newSVpv(version, arch-version-1));
      else {
         char *res;
         arch--;
         *arch = '\0';
         asprintf(&res, "%d:%s", epoch, version);
         mXPUSHs(newSVpv(res, 0));
         *arch = '.'; /* restore info string modified */
      }
    } else if (pkg->h) {
         char *s = headerGetAsString(pkg->h, RPMTAG_EVR);
         mXPUSHs(newSVpv(s, 0));
         free(s);
    }

int
Pkg_is_arch_compat__XS(pkg)
  URPM::Package pkg
  INIT:
  CODE:
  read_config_files(0);
  if (pkg->info) {
    char *arch;
    char *eos;

    get_fullname_parts(pkg, NULL, NULL, NULL, &arch, &eos);
    *eos = 0;
    RETVAL = rpmMachineScore(RPM_MACHTABLE_INSTARCH, arch);
    *eos = '@';
  } else if (pkg->h && headerIsEntry(pkg->h, RPMTAG_SOURCERPM)) {
    char *arch = get_name(pkg->h, RPMTAG_ARCH);
    RETVAL = rpmMachineScore(RPM_MACHTABLE_INSTARCH, arch);
  } else {
    RETVAL = 0;
  }
  OUTPUT:
  RETVAL

void
Pkg_summary(pkg)
  URPM::Package pkg
  PPCODE:
  if (pkg->summary) {
    mXPUSHs(newSVpv_utf8(pkg->summary, 0));
  } else if (pkg->h) {
    mXPUSHs(newSVpv_utf8(get_name(pkg->h, RPMTAG_SUMMARY), 0));
  }

void
Pkg_description(pkg)
  URPM::Package pkg
    ALIAS:
     packager  = 1
  PPCODE:
  if (pkg->h) {
       rpmTag tag = ix == 0 ? RPMTAG_DESCRIPTION : RPMTAG_PACKAGER;
       mXPUSHs(newSVpv_utf8(get_name(pkg->h, tag), 0));
  }

void
Pkg_sourcerpm(pkg)
  URPM::Package pkg
    ALIAS:
     buildhost = 1
     url       = 2
     license   = 3
     distribution = 4
     vendor    = 5
     os        = 6
     payload_format = 7
  PPCODE:
  if (pkg->h) {
       rpmTag tag;
       switch (ix) {
       case 1:  tag = RPMTAG_BUILDHOST;     break;
       case 2:  tag = RPMTAG_URL;           break;
       case 3:  tag = RPMTAG_LICENSE;       break;
       case 4:  tag = RPMTAG_DISTRIBUTION;  break;
       case 5:  tag = RPMTAG_VENDOR;        break;
       case 6:  tag = RPMTAG_OS;            break;
       case 7:  tag = RPMTAG_PAYLOADFORMAT; break;
       default: tag = RPMTAG_SOURCERPM;     break;
       }
       mXPUSHs(newSVpv(get_name(pkg->h, tag), 0));
  }

int
Pkg_buildtime(pkg)
  URPM::Package pkg
  ALIAS:
       installtid = 1
  CODE:
  if (pkg->h)
    RETVAL = get_int(pkg->h, ix == 1 ? RPMTAG_INSTALLTID : RPMTAG_BUILDTIME);
  else
    RETVAL = 0;
  OUTPUT:
  RETVAL


void
Pkg_fullname(pkg)
  URPM::Package pkg
  PREINIT:
  I32 gimme = GIMME_V;
  PPCODE:
  if (pkg->info) {
    if (gimme == G_SCALAR) {
      char *eos;
      if ((eos = strchr(pkg->info, '@')) != NULL) {
	mXPUSHs(newSVpv(pkg->info, eos-pkg->info));
      }
    } else if (gimme == G_ARRAY) {
      char *name, *version, *release, *arch, *eos;
      get_fullname_parts(pkg, &name, &version, &release, &arch, &eos);
      if (version - name < 1 || release - version < 1 || arch - release < 1)
	  croak("invalid fullname");
      EXTEND(SP, 4);
      mPUSHs(newSVpv(name, version-name-1));
      mPUSHs(newSVpv(version, release-version-1));
      mPUSHs(newSVpv(release, arch-release-1));
      mPUSHs(newSVpv(arch, eos-arch));
    }
  } else if (pkg->h) {
    char *arch = get_arch(pkg->h);

    if (gimme == G_SCALAR) {
      char *s = headerGetAsString(pkg->h, RPMTAG_NVR);
      mXPUSHs(newSVpvf("%s.%s", s, arch));
      free(s);
    } else if (gimme == G_ARRAY) {
      EXTEND(SP, 4);
      mPUSHs(newSVpv(get_name(pkg->h, RPMTAG_NAME), 0));
      mPUSHs(newSVpv(get_name(pkg->h, RPMTAG_VERSION), 0));
      mPUSHs(newSVpv(get_name(pkg->h, RPMTAG_RELEASE), 0));
      mPUSHs(newSVpv(arch, 0));
    }
  }

int
Pkg_epoch(pkg)
  URPM::Package pkg
  CODE:
  if (pkg->info) {
    char *s, *eos;

    if ((s = strchr(pkg->info, '@')) != NULL) {
      if ((eos = strchr(s+1, '@')) != NULL)
         *eos = 0; /* mark end of string to enable searching backwards */
      RETVAL = atoi(s+1);
      if (eos != NULL) *eos = '@';
    } else
      RETVAL = 0;
  } else if (pkg->h) {
    RETVAL = get_int(pkg->h, RPMTAG_EPOCH);
  } else RETVAL = 0;
  OUTPUT:
  RETVAL

int
Pkg_compare_pkg(lpkg, rpkg)
  URPM::Package lpkg
  URPM::Package rpkg
  PREINIT:
  int compare = 0;
  int lepoch, repoch;
  char *lversion, *lrelease, *larch;
  char *rversion, *rrelease, *rarch;
  CODE:
  if (lpkg == rpkg) RETVAL = 0;
  else {
    if (!get_e_v_r(lpkg, &lepoch, &lversion, &lrelease, &larch))
      croak("undefined package");

    if (!get_e_v_r(rpkg, &repoch, &rversion, &rrelease, &rarch)) {
      /* restore info string modified */
      if (lpkg->info) {
	lrelease[-1] = '-';
	larch[-1] = '.';
      }
      croak("undefined package");
    }
    compare = compare_evrs(lepoch, lversion, lrelease, repoch, rversion, rrelease);
    // equal? compare arches too
    if (!compare) {
	  int lscore, rscore;
	  char *eolarch = strchr(larch, '@');
	  char *eorarch = strchr(rarch, '@');

	  read_config_files(0);
	  if (eolarch) *eolarch = 0; lscore = rpmMachineScore(RPM_MACHTABLE_INSTARCH, larch);
	  if (eorarch) *eorarch = 0; rscore = rpmMachineScore(RPM_MACHTABLE_INSTARCH, rarch);
	  if (lscore == 0) {
	    if (rscore == 0)
              /* Nanar: TODO check this 
               * hu ?? what is the goal of strcmp, some of arch are equivalent */
	      compare = strcmp(larch, rarch);
	    else
	      compare = -1;
	  } else {
	    if (rscore == 0)
	      compare = 1;
	    else
	      compare = rscore - lscore; /* score are lower for better */
	  }
	  if (eolarch) *eolarch = '@';
	  if (eorarch) *eorarch = '@';
    }
    /* restore info string modified */
    if (lpkg->info) {
      lrelease[-1] = '-';
      larch[-1] = '.';
    }
    if (rpkg->info) {
      rrelease[-1] = '-';
      rarch[-1] = '.';
    }
    RETVAL = compare;
  }
  OUTPUT:
  RETVAL

int
Pkg_compare(pkg, evr)
  URPM::Package pkg
  char *evr
  PREINIT:
  int _epoch, repoch = 0;
  char *_version, *_release, *_eos;
  CODE:
  if (!get_e_v_r(pkg, &_epoch, &_version, &_release, &_eos))
      croak("undefined package");

  char *epoch = NULL, *version, *release;
  if (!strncmp(evr, "URPM::Package=", 14))
      croak("compare() must not be called with a package reference as argument; use compare_pkg() instead");

  /* extract epoch and version from evr */
  version = evr;
  while (*version && isdigit(*version)) version++;
  if (*version == ':') {
    epoch = evr;
    *version++ = 0;
    if (!*epoch) epoch = "0";
    version[-1] = ':'; /* restore in memory modification */
  } else {
    /* there is no epoch defined, so assume epoch = 0 */
    version = evr;
  }
  if ((release = strrchr(version, '-')) != NULL)
     *release++ = 0;
  repoch = epoch && *epoch ? atoi(epoch) : 0;

  RETVAL = compare_evrs(_epoch, _version, _release, repoch, version, release);
  /* restore info string modified */
  if (pkg->info) {
    _release[-1] = '-';
    _eos[-1] = '.';
  }
  if (release)
    release[-1] = '-'; /* restore in memory modification */
  OUTPUT:
  RETVAL

uint64_t
Pkg_size(pkg)
  URPM::Package pkg
  CODE:
  if (pkg->info) {
    char *s, *eos;

    if ((s = strchr(pkg->info, '@')) != NULL && (s = strchr(s+1, '@')) != NULL) {
      if ((eos = strchr(s+1, '@')) != NULL)
        *eos = 0; /* mark end of string to enable searching backwards */
      RETVAL = atoll(s+1);
      if (eos != NULL) *eos = '@';
    } else
      RETVAL = 0;
  } else if (pkg->h)
    RETVAL = get_int2(pkg->h, RPMTAG_LONGSIZE, RPMTAG_SIZE);
  else
    RETVAL = 0;
  OUTPUT:
  RETVAL

void
Pkg_set_filesize(pkg, filesize)
  URPM::Package pkg
  uint64_t filesize;
  PPCODE:
  pkg->filesize = filesize;

uint64_t
Pkg_filesize(pkg)
  URPM::Package pkg
  CODE:
  if (pkg->filesize)
    RETVAL = pkg->filesize;
  else if (pkg->h)
    RETVAL = get_filesize(pkg->h);
  else RETVAL = 0;
  OUTPUT:
  RETVAL

void
Pkg_group(pkg)
  URPM::Package pkg
  PPCODE:
  if (pkg->info) {
    char *s;

    if ((s = strchr(pkg->info, '@')) != NULL && (s = strchr(s+1, '@')) != NULL && (s = strchr(s+1, '@')) != NULL) {
      char *eos = strchr(s+1, '@');
      mXPUSHs(newSVpv_utf8(s+1, eos != NULL ? eos-s-1 : 0));
    }
  } else if (pkg->h)
    mXPUSHs(newSVpv_utf8(get_name(pkg->h, RPMTAG_GROUP), 0));

void
Pkg_filename(pkg)
  URPM::Package pkg
  PPCODE:
  if (pkg->info) {
    char *eon;

    if ((eon = strchr(pkg->info, '@')) != NULL && strlen(eon) >= 3) {
	char savbuf[4];
	memcpy(savbuf, eon, 4); /* there should be at least epoch and size described so (@0@0 minimum) */
	memcpy(eon, ".rpm", 4);
	mXPUSHs(newSVpv(pkg->info, eon-pkg->info+4));
	memcpy(eon, savbuf, 4);
    }
  } else if (pkg->h) {
    char *nvr = headerGetAsString(pkg->h, RPMTAG_NVR);
    char *arch = get_arch(pkg->h);

    mXPUSHs(newSVpvf("%s.%s.rpm", nvr, arch));
  }

void
Pkg_id(pkg)
  URPM::Package pkg
  PPCODE:
  int id = pkg->flag & FLAG_ID_MASK;
  if (id <= FLAG_ID_MAX)
    mXPUSHs(newSViv(id));

void
Pkg_set_id(pkg, id=-1)
  URPM::Package pkg
  int id
  PPCODE:
  int old_id = pkg->flag & FLAG_ID_MASK;
  if (old_id <= FLAG_ID_MAX)
    mXPUSHs(newSViv(old_id));
  pkg->flag &= ~FLAG_ID_MASK;
  pkg->flag |= id >= 0 && id <= FLAG_ID_MAX ? id : FLAG_ID_INVALID;

void
Pkg_obsoletes(pkg)
  URPM::Package pkg
  ALIAS:
      conflicts = 1
      provides  = 2
      requires  = 3
      recommends= 4
  PPCODE:
  PUTBACK;
  rpmTag tag, flags, tag_version;
  char *s;
  switch (ix) {
  case 1:  tag = RPMTAG_CONFLICTNAME; s = pkg->conflicts; flags = RPMTAG_CONFLICTFLAGS; tag_version = RPMTAG_CONFLICTVERSION; break;
  case 2:  tag = RPMTAG_PROVIDENAME;  s = pkg->provides;  flags = RPMTAG_PROVIDEFLAGS;  tag_version = RPMTAG_PROVIDEVERSION;  break;
  case 3:  tag = RPMTAG_REQUIRENAME;  s = pkg->requires;  flags = RPMTAG_REQUIREFLAGS;  tag_version = RPMTAG_REQUIREVERSION;  break;
  case 4:  tag = RPMTAG_RECOMMENDNAME;s = pkg->recommends;flags = RPMTAG_RECOMMENDFLAGS;tag_version = RPMTAG_RECOMMENDVERSION;break;
  default: tag = RPMTAG_OBSOLETENAME; s = pkg->obsoletes; flags = RPMTAG_OBSOLETEFLAGS; tag_version = RPMTAG_OBSOLETEVERSION; break;
  }
  return_list_str(s, pkg->h, tag, flags, tag_version, callback_list_str_xpush, NULL);
  SPAGAIN;

void
Pkg_obsoletes_nosense(pkg)
  URPM::Package pkg
  ALIAS:
      conflicts_nosense = 1
      provides_nosense  = 2
      requires_nosense  = 3
      recommends_nosense= 4
      suggests          = 4
  PPCODE:
  PUTBACK;
  rpmTag tag;
  char *s;
  switch (ix) {
  case 1:  tag = RPMTAG_CONFLICTNAME; s = pkg->conflicts; break;
  case 2:  tag = RPMTAG_PROVIDENAME;  s = pkg->provides;  break;
  case 3:  tag = RPMTAG_REQUIRENAME;  s = pkg->requires;  break;
  case 4:  tag = RPMTAG_RECOMMENDNAME;s = pkg->recommends; break;
  default: tag = RPMTAG_OBSOLETENAME; s = pkg->obsoletes; break;
  }
  return_list_str(s, pkg->h, tag, 0, 0, callback_list_str_xpush, NULL);
  SPAGAIN;

int
Pkg_obsoletes_overlap(pkg, s)
  URPM::Package pkg
  char *s
  ALIAS:
     provides_overlap = 1
  PREINIT:
  struct cb_overlap_s os;
  char *eon = NULL;
  char eonc = '\0';
  rpmTag tag_name;
  rpmTag tag_flags, tag_version;
  CODE:
  switch (ix) {
  case 1:
       tag_name = RPMTAG_PROVIDENAME;
       tag_flags = RPMTAG_PROVIDEFLAGS;
       tag_version = RPMTAG_PROVIDEVERSION;
       break;
  default:
       tag_name = RPMTAG_OBSOLETENAME;
       tag_flags = RPMTAG_OBSOLETEFLAGS;
       tag_version = RPMTAG_OBSOLETEVERSION;
       break;
  }
  os.name = s;
  os.flags = 0;
  while (*s && *s != ' ' && *s != '[' && *s != '<' && *s != '>' && *s != '=') ++s;
  if (*s) {
    eon = s;
    while (*s) {
      if (*s == ' ' || *s == '[' || *s == '*' || *s == ']');
      else if (*s == '<') os.flags |= RPMSENSE_LESS;
      else if (*s == '>') os.flags |= RPMSENSE_GREATER;
      else if (*s == '=') os.flags |= RPMSENSE_EQUAL;
      else break;
      ++s;
    }
    os.evr = s;
  } else
    os.evr = "";
  os.direction = ix == 0 ? -1 : 1;
  /* mark end of name */
  if (eon) {
    eonc = *eon;
    *eon = 0;
  }
  /* return_list_str returns a negative value is the callback has returned non-zero */
  RETVAL = return_list_str(ix == 0 ? pkg->obsoletes : pkg->provides, pkg->h, tag_name, tag_flags, tag_version,
			   callback_list_str_overlap, &os) < 0;
  /* restore end of name */
  if (eon) *eon = eonc;
  OUTPUT:
  RETVAL

void
Pkg_buildarchs(pkg)
  URPM::Package pkg
  ALIAS:
    excludearchs   = 1
    exclusivearchs = 2
    dirnames       = 3
    filelinktos    = 4
    files_md5sum   = 5
    files_owner    = 6
    files_group    = 7
    changelog_name = 8
    changelog_text = 9
  PPCODE:
  PUTBACK;
       rpmTag tag;
       switch (ix) {
       case 1: tag = RPMTAG_EXCLUDEARCH; break;
       case 2: tag = RPMTAG_EXCLUSIVEARCH; break;
       case 3: tag = RPMTAG_DIRNAMES; break;
       case 4: tag = RPMTAG_FILELINKTOS; break;
       case 5: tag = RPMTAG_FILEMD5S; break;
       case 6: tag = RPMTAG_FILEUSERNAME; break;
       case 7: tag = RPMTAG_FILEGROUPNAME; break;
       case 8: tag = RPMTAG_CHANGELOGNAME; break;
       case 9: tag = RPMTAG_CHANGELOGTEXT; break;
       default: tag = RPMTAG_BUILDARCHS; break;
       }
       xpush_simple_list_str(pkg->h, tag);
  SPAGAIN;

void
Pkg_files(pkg)
  URPM::Package pkg
  ALIAS:
    conf_files     = FILTER_MODE_CONF_FILES
    doc_files      = FILTER_MODE_DOC_FILES
  PPCODE:
  PUTBACK;
  return_files(pkg->h, ix);
  SPAGAIN;

void
Pkg_files_mtime(pkg)
  URPM::Package pkg
  ALIAS:
    files_size     = 1
    files_uid      = 2
    files_gid      = 3
    files_mode     = 4
    files_flags    = 5
    changelog_time = 6
  PPCODE:
  PUTBACK;
       rpmTag tag;
       switch (ix) {
       case 1: tag = RPMTAG_FILESIZES; break;
       case 2: tag = RPMTAG_FILEUIDS; break;
       case 3: tag = RPMTAG_FILEGIDS; break;
       case 4: tag = RPMTAG_FILEMODES; break;
       case 5: tag = RPMTAG_FILEFLAGS; break;
       case 6: tag = RPMTAG_CHANGELOGTIME; break;
       default: tag = RPMTAG_FILEMTIMES; break;
       }
       return_list_number(pkg->h, tag);
  SPAGAIN;

void
Pkg_queryformat(pkg, fmt)
  URPM::Package pkg
  char *fmt
  PREINIT:
  char *s;
  PPCODE:
  if (pkg->h) {
    s = headerFormat(pkg->h, fmt, NULL);
      if (s)
        mXPUSHs(newSVpv_utf8(s, 0));
  }
  
void
Pkg_get_tag(pkg, tagname)
  URPM::Package pkg
  int tagname;
  ALIAS:
    get_tag_modifiers = 1
  PPCODE:
  PUTBACK;
  if (ix == 0)
    return_list_tag(pkg, tagname);
  else
    return_list_tag_modifier(pkg->h, tagname);
  SPAGAIN;

  
void
Pkg_pack_header(pkg)
  URPM::Package pkg
  CODE:
  pack_header(pkg);

int
Pkg_update_header(pkg, filename, ...)
  URPM::Package pkg
  char *filename
  PREINIT:
  int packing = 0;
  int keep_all_tags = 0;
  CODE:
  if (items > 3) {
    int i;
    for (i = 2; i < items-1; i+=2) {
      STRLEN len;
      char *s = SvPV(ST(i), len);

      if (len == 7 && !memcmp(s, "packing", 7))
	packing = SvTRUE(ST(i + 1));
      else if (len == 13 && !memcmp(s, "keep_all_tags", 13))
	keep_all_tags = SvTRUE(ST(i+1));
    }
  }
  RETVAL = update_header(filename, pkg, !packing && keep_all_tags, RPMVSF_DEFAULT);
  if (RETVAL && packing) pack_header(pkg);
  OUTPUT:
  RETVAL

void
Pkg_free_header(pkg)
  URPM::Package pkg
  CODE:
  _header_free(pkg);
  pkg->h = NULL;

void
Pkg_build_info(pkg, fileno, provides_files=NULL, recommends=0)
  URPM::Package pkg
  int fileno
  char *provides_files
  int recommends
  CODE:
  if (pkg->info) {
    char buff[65536*2];
    uint64_t size;

    /* info line should be the last to be written */
    if (pkg->provides && *pkg->provides) {
      size = snprintf(buff, sizeof(buff), "@provides@%s\n", pkg->provides);
      if (size < sizeof(buff)) {
	if (provides_files && *provides_files) {
	  --size;
	  size += snprintf(buff+size, sizeof(buff)-size, "@%s\n", provides_files);
	}
	write_nocheck(fileno, buff, size);
      }
    }
    if (pkg->conflicts && *pkg->conflicts) {
      size = snprintf(buff, sizeof(buff), "@conflicts@%s\n", pkg->conflicts);
      if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
    }
    if (pkg->obsoletes && *pkg->obsoletes) {
      size = snprintf(buff, sizeof(buff), "@obsoletes@%s\n", pkg->obsoletes);
      if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
    }
    if (pkg->requires && *pkg->requires) {
      size = snprintf(buff, sizeof(buff), "@requires@%s\n", pkg->requires);
      if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
    }
    if (pkg->recommends && *pkg->recommends) {
      size = snprintf(buff, sizeof(buff), recommends ? "@recommends@%s\n" : "@suggests@%s\n", pkg->recommends);
      if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
    }
    if (pkg->summary && *pkg->summary) {
      size = snprintf(buff, sizeof(buff), "@summary@%s\n", pkg->summary);
      if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
    }
    if (pkg->filesize) {
      size = snprintf(buff, sizeof(buff), "@filesize@%" PRIu64 "\n", pkg->filesize);
      if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
    }
    size = snprintf(buff, sizeof(buff), "@info@%s\n", pkg->info);
    write_nocheck(fileno, buff, size);
  } else croak("no info available for package %s",
	  pkg->h ? get_name(pkg->h, RPMTAG_NAME) : "-");

void
Pkg_build_header(pkg, fileno)
  URPM::Package pkg
  int fileno
  CODE:
  if (pkg->h) {
    FD_t fd;

    if ((fd = fdDup(fileno)) != NULL) {
      headerWrite(fd, pkg->h, HEADER_MAGIC_YES);
      Fclose(fd);
    } else croak("unable to get rpmio handle on fileno %d", fileno);
  } else croak("no header available for package");

int
Pkg_flag(pkg, name)
  URPM::Package pkg
  char *name
  PREINIT:
  unsigned mask;
  CODE:
  mask = mask_from_string(name);
  RETVAL = pkg->flag & mask;
  OUTPUT:
  RETVAL

int
Pkg_set_flag(pkg, name, value=1)
  URPM::Package pkg
  char *name
  int value
  PREINIT:
  unsigned mask;
  CODE:
  mask = mask_from_string(name);
  RETVAL = pkg->flag & mask;
  if (value) pkg->flag |= mask;
  else       pkg->flag &= ~mask;
  OUTPUT:
  RETVAL

int
Pkg_set_flag_skip(pkg, value=1)
  URPM::Package pkg
  int value
  ALIAS:
    set_flag_base = 1
    set_flag_disable_obsolete = 2
    set_flag_installed = 3
    set_flag_requested = 4
    set_flag_required = 5
    set_flag_upgrade = 6
  CODE:
  unsigned flag;
  switch (ix) {
  case 1: flag = FLAG_BASE; break;
  case 2: flag = FLAG_DISABLE_OBSOLETE; break;
  case 3: flag = FLAG_INSTALLED; break;
  case 4: flag = FLAG_REQUESTED; break;
  case 5: flag = FLAG_REQUIRED; break;
  case 6: flag = FLAG_UPGRADE; break;
  default: flag = FLAG_SKIP; break;
  }
  RETVAL = pkg->flag & flag;
  if (value) pkg->flag |= flag;
  else       pkg->flag &= ~flag;
  OUTPUT:
  RETVAL


int
Pkg_flag_required(pkg)
  URPM::Package pkg
  ALIAS:
    flag_upgrade = 1
    flag_disable_obsolete = 2
    flag_requested = 3
    flag_installed = 4
    flag_base = 5
    flag_skip = 6
  CODE:
  unsigned flag;
  switch (ix) {
  case 1: flag = FLAG_UPGRADE; break;
  case 2: flag = FLAG_DISABLE_OBSOLETE; break;
  case 3: flag = FLAG_REQUESTED; break;
  case 4: flag = FLAG_INSTALLED; break;
  case 5: flag = FLAG_BASE; break;
  case 6: flag = FLAG_SKIP; break;
  default: flag = FLAG_REQUIRED; break;
  }
  RETVAL = pkg->flag & flag;
  OUTPUT:
  RETVAL

int
Pkg_flag_selected(pkg)
  URPM::Package pkg
  CODE:
  RETVAL = pkg->flag & FLAG_UPGRADE ? pkg->flag & (FLAG_BASE | FLAG_REQUIRED) : 0;
  OUTPUT:
  RETVAL

int
Pkg_flag_available(pkg)
  URPM::Package pkg
  CODE:
  RETVAL = (pkg->flag & FLAG_INSTALLED && !(pkg->flag & FLAG_UPGRADE)) ||
           (pkg->flag & FLAG_UPGRADE ? pkg->flag & (FLAG_BASE | FLAG_REQUIRED) : 0);
  OUTPUT:
  RETVAL

int
Pkg_rate(pkg)
  URPM::Package pkg
  CODE:
  RETVAL = (pkg->flag & FLAG_RATE_MASK) >> FLAG_RATE_POS;
  OUTPUT:
  RETVAL

int
Pkg_set_rate(pkg, rate)
  URPM::Package pkg
  int rate
  CODE:
  RETVAL = (pkg->flag & FLAG_RATE_MASK) >> FLAG_RATE_POS;
  pkg->flag &= ~FLAG_RATE_MASK;
  pkg->flag |= (rate >= 0 && rate <= FLAG_RATE_MAX ? rate : FLAG_RATE_INVALID) << FLAG_RATE_POS;
  OUTPUT:
  RETVAL

void
Pkg_rflags(pkg)
  URPM::Package pkg
  PREINIT:
  I32 gimme = GIMME_V;
  PPCODE:
  if (gimme == G_ARRAY && pkg->rflags != NULL) {
    char *s = pkg->rflags;
    char *eos;
    while ((eos = strchr(s, '\t')) != NULL) {
      mXPUSHs(newSVpv(s, eos-s));
      s = eos + 1;
    }
    mXPUSHs(newSVpv(s, 0));
  }

void
Pkg_set_rflags(pkg, ...)
  URPM::Package pkg
  PREINIT:
  I32 gimme = GIMME_V;
  char *new_rflags;
  STRLEN total_len;
  int i;
  PPCODE:
  total_len = 0;
  for (i = 1; i < items; ++i)
    total_len += SvCUR(ST(i)) + 1;

  new_rflags = malloc(total_len);
  total_len = 0;
  for (i = 1; i < items; ++i) {
    STRLEN len;
    char *s = SvPV(ST(i), len);
    memcpy(new_rflags + total_len, s, len);
    new_rflags[total_len + len] = '\t';
    total_len += len + 1;
  }
  new_rflags[total_len - 1] = 0; /* but mark end-of-string correctly */

  if (gimme == G_ARRAY && pkg->rflags != NULL) {
    char *s = pkg->rflags;
    char *eos;
    while ((eos = strchr(s, '\t')) != NULL) {
      mXPUSHs(newSVpv(s, eos-s));
      s = eos + 1;
    }
    mXPUSHs(newSVpv(s, 0));
  }

  free(pkg->rflags);
  pkg->rflags = new_rflags;


MODULE = URPM            PACKAGE = URPM::DB            PREFIX = Db_

URPM::DB
Db_open(prefix=NULL, write_perm=0)
  char *prefix
  int write_perm
  PREINIT:
  URPM__DB db;
  CODE:
  read_config_files(0);
  db = malloc(sizeof(struct s_Transaction));
  db->count = 1;
  db->ts = rpmtsCreate();
  rpmtsSetRootDir(db->ts, prefix && prefix[0] ? prefix : NULL);
  if (rpmtsOpenDB(db->ts, write_perm ? O_RDWR | O_CREAT : O_RDONLY) == 0) {
    RETVAL = db;
  } else {
    RETVAL = NULL;
    (void)rpmtsFree(db->ts);
    free(db);
  }
  OUTPUT:
  RETVAL

int
Db_rebuild(prefix=NULL)
  char *prefix
  PREINIT:
  rpmts ts;
  CODE:
  read_config_files(0);
  ts = rpmtsCreate();
  rpmtsSetRootDir(ts, prefix);
  RETVAL = rpmtsRebuildDB(ts) == 0;
  (void)rpmtsFree(ts);
  OUTPUT:
  RETVAL

int
Db_verify(prefix=NULL)
  char *prefix
  PREINIT:
  rpmts ts;
  CODE:
  ts = rpmtsCreate();
  rpmtsSetRootDir(ts, prefix);
  RETVAL = rpmtsVerifyDB(ts) == 0;
  rpmtsFree(ts);
  OUTPUT:
  RETVAL

void
Db_DESTROY(db)
  URPM::DB db
  CODE:
  (void)rpmtsFree(db->ts);
  if (!--db->count) free(db);

int
Db_traverse(db,callback)
  URPM::DB db
  SV *callback
  PREINIT:
  Header header;
  rpmdbMatchIterator mi;
  rpmVSFlags ovsflags;
  int count = 0;
  CODE:
  db->ts = rpmtsLink(db->ts);
  ovsflags = ts_nosignature(db->ts);
  mi = rpmtsInitIterator(db->ts, RPMDBI_PACKAGES, NULL, 0);
  while ((header = rpmdbNextIterator(mi))) {
    if (SvROK(callback))
         _run_cb_while_traversing(callback, header, G_DISCARD);
    ++count;
  }
  rpmdbFreeIterator(mi);
  rpmtsSetVSFlags(db->ts, ovsflags);
  (void)rpmtsFree(db->ts);
  RETVAL = count;
  OUTPUT:
  RETVAL

int
Db_traverse_tag(db,tag,names,callback)
  URPM::DB db
  char *tag
  SV *names
  SV *callback
  PREINIT:
  Header header;
  rpmdbMatchIterator mi;
  int count = 0;
  rpmVSFlags ovsflags;
  CODE:
  if (SvROK(names) && SvTYPE(SvRV(names)) == SVt_PVAV) {
    AV* names_av = (AV*)SvRV(names);
    int len = av_len(names_av);
    int i;
    rpmDbiTag rpmtag = rpmtag_from_string(tag);

    for (i = 0; i <= len; ++i) {
      STRLEN str_len;
      SV **isv = av_fetch(names_av, i, 0);
      char *name = SvPV(*isv, str_len);
      db->ts = rpmtsLink(db->ts);
      ovsflags = ts_nosignature(db->ts);
      mi = rpmtsInitIterator(db->ts, rpmtag, name, str_len);
      while ((header = rpmdbNextIterator(mi))) {
	if (SvROK(callback))
	  _run_cb_while_traversing(callback, header, G_DISCARD);
	++count;
      }
      (void)rpmdbFreeIterator(mi);
      rpmtsSetVSFlags(db->ts, ovsflags);
      (void)rpmtsFree(db->ts);
    } 
  } else croak("bad arguments list");
  RETVAL = count;
  OUTPUT:
  RETVAL

int
Db_traverse_tag_find(db,tag,name,callback)
  URPM::DB db
  char *tag
  char *name
  SV *callback
  PREINIT:
  Header header;
  rpmdbMatchIterator mi;
  CODE:
  rpmDbiTag rpmtag = rpmtag_from_string(tag);
  int found = 0;
  rpmVSFlags ovsflags;
  db->ts = rpmtsLink(db->ts);
  ovsflags = ts_nosignature(db->ts);
  mi = rpmtsInitIterator(db->ts, rpmtag, name, 0);
  while ((header = rpmdbNextIterator(mi))) {
      dSP;
      int count = _run_cb_while_traversing(callback, header, 0);

      SPAGAIN;
      if (count == 1) {
	SV* ret = POPs;
	found = SvTRUE(ret);
	PUTBACK;
      }
      if (found) {
	break;
      }
  }
  rpmtsSetVSFlags(db->ts, ovsflags);
  (void)rpmdbFreeIterator(mi);
  (void)rpmtsFree(db->ts);
  RETVAL = found;
  OUTPUT:
  RETVAL

URPM::Transaction
Db_create_transaction(db)
  URPM::DB db
  CODE:
  /* this is *REALLY* dangerous to create a new transaction while another is open,
     so use the db transaction instead. */
  db->ts = rpmtsLink(db->ts);
  ++db->count;
  RETVAL = db;
  OUTPUT:
  RETVAL


MODULE = URPM            PACKAGE = URPM::Transaction   PREFIX = Trans_

void
Trans_DESTROY(trans)
  URPM::Transaction trans
  CODE:
  (void)rpmtsFree(trans->ts);
  if (!--trans->count) free(trans);

void
Trans_set_script_fd(trans, fdno)
  URPM::Transaction trans
  int fdno
  CODE:
  rpmtsSetScriptFd(trans->ts, fdDup(fdno));

int
Trans_add(trans, pkg, ...)
  URPM::Transaction trans
  URPM::Package pkg
  CODE:
  if ((pkg->flag & FLAG_ID_MASK) <= FLAG_ID_MAX && pkg->h != NULL) {
    int update = 0;
    rpmRelocation *relocations = NULL;
    if (items > 3) {
      int i;
      for (i = 2; i < items-1; i+=2) {
	STRLEN len;
	char *s = SvPV(ST(i), len);

	if (len == 6 && !memcmp(s, "update", 6))
	  update = SvIV(ST(i+1));
	else if (len == 11 && !memcmp(s, "excludepath", 11)) {
	  if (SvROK(ST(i+1)) && SvTYPE(SvRV(ST(i+1))) == SVt_PVAV) {
	    AV *excludepath = (AV*)SvRV(ST(i+1));
	    I32 j = 1 + av_len(excludepath);
	    if (relocations) free(relocations);
	    relocations = calloc(j + 1, sizeof(rpmRelocation));
	    while (--j >= 0) {
	      SV **e = av_fetch(excludepath, j, 0);
	      if (e != NULL && *e != NULL)
		relocations[j].oldPath = SvPV_nolen(*e);
	    }
	  }
	}
      }
    }
    RETVAL = rpmtsAddInstallElement(trans->ts, pkg->h, (fnpyKey)(1+(long)(pkg->flag & FLAG_ID_MASK)), update, relocations) == 0;
    /* free allocated memory, check rpm is copying it just above, at least in 4.0.4 */
    free(relocations);
  } else RETVAL = 0;
  OUTPUT:
  RETVAL

int
Trans_remove(trans, name)
  URPM::Transaction trans
  char *name
  PREINIT:
  Header h;
  rpmdbMatchIterator mi;
  int count = 0;
  CODE:
  mi = rpmtsInitIterator(trans->ts, RPMDBI_LABEL, name, 0);
  while ((h = rpmdbNextIterator(mi))) {
    unsigned int recOffset = rpmdbGetIteratorOffset(mi);
    if (recOffset != 0) {
      rpmtsAddEraseElement(trans->ts, h, recOffset);
      ++count;
    }
  }
  rpmdbFreeIterator(mi);
  RETVAL=count;
  OUTPUT:
  RETVAL

int
Trans_traverse(trans, callback)
  URPM::Transaction trans
  SV *callback
  PREINIT:
  rpmdbMatchIterator mi;
  Header h;
  int c = 0;
  CODE:
  mi = rpmtsInitIterator(trans->ts, RPMDBI_PACKAGES, NULL, 0);
  while ((h = rpmdbNextIterator(mi))) {
    if (SvROK(callback))
      _run_cb_while_traversing(callback, h, G_DISCARD);
    ++c;
  }
  rpmdbFreeIterator(mi);
  RETVAL = c;
  OUTPUT:
  RETVAL

void
Trans_check(trans, ...)
  URPM::Transaction trans
  PREINIT:
  I32 gimme = GIMME_V;
  int translate_message = 0;
  int i;
  PPCODE:
  for (i = 1; i < items-1; i+=2) {
    STRLEN len;
    char *s = SvPV(ST(i), len);

    if (len == 17 && !memcmp(s, "translate_message", 17))
      translate_message = SvIV(ST(i+1));
  }
  rpmtsCheck(trans->ts);
    rpmps ps = rpmtsProblems(trans->ts);
    if (rpmpsNumProblems(ps) > 0) {
      if (gimme == G_SCALAR)
	mXPUSHs(newSViv(0));
      else if (gimme == G_ARRAY) {
	/* now translation is handled by rpmlib, but only for version 4.2 and above */
	PUTBACK;
	return_problems(ps, 1, 0);
	SPAGAIN;
      }
    } else if (gimme == G_SCALAR)
      mXPUSHs(newSViv(1));
    
    rpmpsFree(ps);

void
Trans_order(trans, ...)
  URPM::Transaction trans
  PREINIT:
  rpmtransFlags transFlags = RPMTRANS_FLAG_NONE;
  I32 gimme = GIMME_V;
  int i;
  PPCODE:
  for (i = 1; i < items-1; i+=2) {
    STRLEN len;
    char *s = SvPV(ST(i), len);

    if (len == 8 && !memcmp(s, "deploops", 8)) {
      if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_DEPLOOPS;
    }
  }
  rpmtsSetFlags(trans->ts, transFlags);
  if (rpmtsOrder(trans->ts) == 0) {
    if (gimme == G_SCALAR)
      mXPUSHs(newSViv(1));
  } else {
    if (gimme == G_SCALAR)
      mXPUSHs(newSViv(0));
    else if (gimme == G_ARRAY)
      mXPUSHs(newSVpvs("error while ordering dependencies"));
  }

int
Trans_NElements(trans)
  URPM::Transaction trans
  CODE:
  RETVAL = rpmtsNElements(trans->ts);
  OUTPUT:
  RETVAL

char *
Trans_Element_name(trans, index)
  URPM::Transaction trans
  int index
  ALIAS:
       Element_version  = 1
       Element_release  = 2
       Element_fullname = 3
  CODE:
  rpmte te = rpmtsElement(trans->ts, index);
  if (te) {
       switch (ix) {
       case 1:  RETVAL = (char *) rpmteV(te); break;
       case 2:  RETVAL = (char *) rpmteR(te); break;
       case 3:  RETVAL = (char *) rpmteNEVRA(te); break;
       default: RETVAL = (char *) rpmteN(te); break;
       }
  } else {
       RETVAL = NULL;
  }
  OUTPUT:
  RETVAL

void
Trans_run(trans, data, ...)
  URPM::Transaction trans
  SV *data
  PREINIT:
  struct s_TransactionData td = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, 100000, data };
  rpmtransFlags transFlags = RPMTRANS_FLAG_NONE;
  int probFilter = 0;
  int translate_message = 0, raw_message = 0;
  int i;
  PPCODE:
  for (i = 2 ; i < items - 1 ; i += 2) {
    STRLEN len;
    char *s = SvPV(ST(i), len);

    if (len == 4 && !memcmp(s, "test", 4)) {
      if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_TEST;
    } else if (len == 11 && !memcmp(s, "excludedocs", 11)) {
      if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_NODOCS;
    } else if (len == 5) {
      if (!memcmp(s, "force", 5)) {
	if (SvIV(ST(i+1))) probFilter |= (RPMPROB_FILTER_REPLACEPKG |
					  RPMPROB_FILTER_REPLACEOLDFILES |
					  RPMPROB_FILTER_REPLACENEWFILES |
					  RPMPROB_FILTER_OLDPACKAGE);
      } else if (!memcmp(s, "delta", 5))
	td.min_delta = SvIV(ST(i+1));
    } else if (len == 6 && !memcmp(s, "nosize", 6)) {
      if (SvIV(ST(i+1))) probFilter |= (RPMPROB_FILTER_DISKSPACE|RPMPROB_FILTER_DISKNODES);
    } else if (len == 9 && !memcmp(s, "noscripts", 9)) {
      if (SvIV(ST(i+1))) transFlags |= (RPMTRANS_FLAG_NOSCRIPTS |
				        RPMTRANS_FLAG_NOPRE |
				        RPMTRANS_FLAG_NOPREUN |
				        RPMTRANS_FLAG_NOPOST |
				        RPMTRANS_FLAG_NOPOSTUN );
    } else if (len == 10 && !memcmp(s, "oldpackage", 10)) {
      if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_OLDPACKAGE;
    } else if (len == 11 && !memcmp(s, "replacepkgs", 11)) {
      if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_REPLACEPKG;
    } else if (len == 11 && !memcmp(s, "raw_message", 11)) {
      raw_message = 1;
    } else if (len == 12 && !memcmp(s, "replacefiles", 12)) {
      if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_REPLACEOLDFILES | RPMPROB_FILTER_REPLACENEWFILES;
    } else if (len == 6 && !memcmp(s, "justdb", 6)) {
      if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_JUSTDB;
    } else if (len == 10 && !memcmp(s, "ignorearch", 10)) {
      if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_IGNOREARCH;
    } else if (len == 17 && !memcmp(s, "translate_message", 17))
      translate_message = 1;
    else if (len >= 9 && !memcmp(s, "callback_", 9)) {
      if (len == 9+4 && !memcmp(s+9, "open", 4)) {
	if (SvROK(ST(i+1))) td.callback_open = ST(i+1);
      } else if (len == 9+5 && !memcmp(s+9, "close", 5)) {
	if (SvROK(ST(i+1))) td.callback_close = ST(i+1);
      } else if (len == 9+4 && !memcmp(s+9, "elem", 4)) {
	if (SvROK(ST(i+1))) td.callback_elem = ST(i+1);
      } else if (len == 9+5 && !memcmp(s+9, "trans", 5)) {
	if (SvROK(ST(i+1))) td.callback_trans = ST(i+1);
      } else if (len == 9+6 && !memcmp(s+9, "uninst", 6)) {
	if (SvROK(ST(i+1))) td.callback_uninst = ST(i+1);
      } else if (len == 9+4 && !memcmp(s+9, "inst", 4)) {
	if (SvROK(ST(i+1))) td.callback_inst = ST(i+1);
      } else if (len == 9+5 && !memcmp(s+9, "error", 5)) {
	if (SvROK(ST(i+1))) td.callback_error = ST(i+1);
      }
    }
  }
  rpmtsSetFlags(trans->ts, transFlags);
  trans->ts = rpmtsLink(trans->ts);
  rpmtsSetNotifyCallback(trans->ts, rpmRunTransactions_callback, &td);
  if (rpmtsRun(trans->ts, NULL, probFilter) > 0) {
    rpmps ps = rpmtsProblems(trans->ts);
    PUTBACK;
    return_problems(ps, translate_message, raw_message || !translate_message);
    SPAGAIN;
    rpmpsFree(ps);
  }
  rpmtsEmpty(trans->ts);
  (void)rpmtsFree(trans->ts);

MODULE = URPM            PACKAGE = URPM                PREFIX = Urpm_

BOOT:
(void) read_config_files(0);
    PERL_MATH_INT64_LOAD_OR_CROAK;

void
Urpm_bind_rpm_textdomain_codeset()
  CODE:
  rpm_codeset_is_utf8 = 1;
  bind_textdomain_codeset("rpm", "UTF-8");

int
Urpm_read_config_files()
  CODE:
  RETVAL = (read_config_files(1) == 0); /* force re-read of configuration files */
  OUTPUT:
  RETVAL

int
rpmvercmp(one, two)
    char *one
    char *two        
       
int
Urpm_ranges_overlap(a, b)
  char *a
  char *b
  PREINIT:
  char *sa = a, *sb = b;
  int aflags = 0, bflags = 0;
  CODE:
  while (*sa && *sa != ' ' && *sa != '[' && *sa != '<' && *sa != '>' && *sa != '=' && *sa == *sb) {
    ++sa;
    ++sb;
  }
  if ((*sa && *sa != ' ' && *sa != '[' && *sa != '<' && *sa != '>' && *sa != '=') ||
      (*sb && *sb != ' ' && *sb != '[' && *sb != '<' && *sb != '>' && *sb != '=')) {
    /* the strings are sure to be different */
    RETVAL = 0;
  } else {
    while (*sa) {
      if (*sa == ' ' || *sa == '[' || *sa == '*' || *sa == ']');
      else if (*sa == '<') aflags |= RPMSENSE_LESS;
      else if (*sa == '>') aflags |= RPMSENSE_GREATER;
      else if (*sa == '=') aflags |= RPMSENSE_EQUAL;
      else break;
      ++sa;
    }
    while (*sb) {
      if (*sb == ' ' || *sb == '[' || *sb == '*' || *sb == ']');
      else if (*sb == '<') bflags |= RPMSENSE_LESS;
      else if (*sb == '>') bflags |= RPMSENSE_GREATER;
      else if (*sb == '=') bflags |= RPMSENSE_EQUAL;
      else break;
      ++sb;
    }
    RETVAL = ranges_overlap(aflags, sa, bflags, sb);
  }
  OUTPUT:
  RETVAL

void
Urpm_parse_synthesis__XS(urpm, filename, ...)
  SV *urpm
  char *filename
  PPCODE:
  if (SvROK(urpm) && SvTYPE(SvRV(urpm)) == SVt_PVHV) {
    SV **fdepslist = hv_fetch((HV*)SvRV(urpm), "depslist", 8, 0);
    AV *depslist = fdepslist && SvROK(*fdepslist) && SvTYPE(SvRV(*fdepslist)) == SVt_PVAV ? (AV*)SvRV(*fdepslist) : NULL;
    SV **fprovides = hv_fetch((HV*)SvRV(urpm), "provides", 8, 0);
    HV *provides = fprovides && SvROK(*fprovides) && SvTYPE(SvRV(*fprovides)) == SVt_PVHV ? (HV*)SvRV(*fprovides) : NULL;
    SV **fobsoletes = hv_fetch((HV*)SvRV(urpm), "obsoletes", 9, 0);
    HV *obsoletes = fobsoletes && SvROK(*fobsoletes) && SvTYPE(SvRV(*fobsoletes)) == SVt_PVHV ? (HV*)SvRV(*fobsoletes) : NULL;

    if (depslist != NULL) {
      char buff[65536*2];
      char *p, *eol, *t;
      int buff_len;
      struct s_Package pkg;
      FD_t f = NULL;
      int start_id = 1 + av_len(depslist);
      SV *callback = NULL;
      rpmCompressedMagic compressed = COMPRESSED_OTHER;

      if (items > 2) {
	int i;
	for (i = 2; i < items-1; i+=2) {
	  STRLEN len;
	  char *s = SvPV(ST(i), len);

	  if (len == 8 && !memcmp(s, "callback", 8) && SvROK(ST(i+1)))
	    callback = ST(i+1);
	}
      }

      PUTBACK;
      int rc = rpmFileIsCompressed(filename, &compressed);

      switch (compressed) {
      case COMPRESSED_BZIP2: t = "r.bzip2"; break;
      case COMPRESSED_LZMA:
      case COMPRESSED_XZ:
        t = "r.xz"; break;
      case COMPRESSED_OTHER:
      default:
        t = "r.gzip"; break;
      }
      f = Fopen(filename, "r.fdio");

      if (!rc && (f = Fdopen(f, t)) != NULL && !Ferror(f)) {
	// initialize first package
	memset(&pkg, 0, sizeof(struct s_Package));
	buff[sizeof(buff)-1] = 0;
	p = buff;
	int ok = 1;
	while ((buff_len = Fread(p, sizeof(buff)-1-(p-buff), 1, f)) >= 0 &&
	       (buff_len += p-buff)) {
	  buff[buff_len] = 0;
	  p = buff;
	  if ((eol = strchr(p, '\n')) != NULL) {
	    do {
	      *eol++ = 0;
	      if (!parse_line(depslist, provides, obsoletes, &pkg, p, urpm, callback)) {
                ok = 0;
                break;
              }
	      p = eol;
	    } while ((eol = strchr(p, '\n')) != NULL);
	  } else {
	    /* a line larger than sizeof(buff) has been encountered, bad file problably */
	    fprintf(stderr, "invalid line <%s>\n", p);
	    ok = 0;
	    break;
	  }
	    /* move the remaining non-complete-line at beginning */
	    memmove(buff, p, buff_len-(p-buff));
	    /* point to the end of the non-complete-line */
	    p = &buff[buff_len-(p-buff)];
	}
        // EOF:
        if (ok && buff_len > 0
            && !parse_line(depslist, provides, obsoletes, &pkg, p, urpm, callback))
             ok = 0;
	if (Fclose(f) != 0) ok = 0;
	SPAGAIN;
	if (ok) {
	  mXPUSHs(newSViv(start_id));
	  mXPUSHs(newSViv(av_len(depslist)));
	}
      } else {
	  SV **nofatal = hv_fetch((HV*)SvRV(urpm), "nofatal", 7, 0);
	  if (!errno) errno = EINVAL; /* zlib error */
	  if (!nofatal || !SvIV(*nofatal))
	      croak(errno == ENOENT
		      ? "unable to read synthesis file %s"
		      : "unable to uncompress synthesis file %s", filename);
      }
    } else croak("first argument should contain a depslist ARRAY reference");
  } else croak("first argument should be a reference to a HASH");

void
Urpm_parse_hdlist__XS(urpm, filename, ...)
  SV *urpm
  char *filename
  PPCODE:
  if (SvROK(urpm) && SvTYPE(SvRV(urpm)) == SVt_PVHV) {
    SV **fdepslist = hv_fetch((HV*)SvRV(urpm), "depslist", 8, 0);
    AV *depslist = fdepslist && SvROK(*fdepslist) && SvTYPE(SvRV(*fdepslist)) == SVt_PVAV ? (AV*)SvRV(*fdepslist) : NULL;
    SV **fprovides = hv_fetch((HV*)SvRV(urpm), "provides", 8, 0);
    HV *provides = fprovides && SvROK(*fprovides) && SvTYPE(SvRV(*fprovides)) == SVt_PVHV ? (HV*)SvRV(*fprovides) : NULL;
    SV **fobsoletes = hv_fetch((HV*)SvRV(urpm), "obsoletes", 9, 0);
    HV *obsoletes = fobsoletes && SvROK(*fobsoletes) && SvTYPE(SvRV(*fobsoletes)) == SVt_PVHV ? (HV*)SvRV(*fobsoletes) : NULL;

    if (depslist != NULL) {
      int empty_archive = 0;
      FD_t fd;

      fd = open_archive(filename, &empty_archive);

      if (empty_archive) {
	  mXPUSHs(newSViv(1 + av_len(depslist)));
	  mXPUSHs(newSViv(av_len(depslist)));
      } else if (fd != NULL && !Ferror(fd)) {
	Header header;
	int start_id = 1 + av_len(depslist);
	int packing = 0;
	SV *callback = NULL;

	if (items > 3) {
	  int i;
	  for (i = 2; i < items-1; i+=2) {
	    STRLEN len;
	    char *s = SvPV(ST(i), len);

	    if (len == 7 && !memcmp(s, "packing", 7))
	      packing = SvTRUE(ST(i+1));
	    else if (len == 8 && !memcmp(s, "callback", 8) && SvROK(ST(i+1)))
	      callback = ST(i+1);
	  }
	}

	PUTBACK;
	do {
	  header = headerRead(fd, HEADER_MAGIC_YES);
	  if (header != NULL) {
	    struct s_Package *_pkg;
	    _pkg = calloc(1, sizeof(struct s_Package));
	    _pkg->flag = 1 + av_len(depslist);
	    _pkg->h = header;
	    push_in_depslist(_pkg, urpm, depslist, callback, provides, obsoletes, packing);
	  }
	} while (header != NULL);

	int ok = Fclose(fd) == 0;

	if (!empty_archive)
	  ok = av_len(depslist) >= start_id;
	SPAGAIN;
	if (ok) {
	  mXPUSHs(newSViv(start_id));
	  mXPUSHs(newSViv(av_len(depslist)));
	}
      } else {
	  SV **nofatal = hv_fetch((HV*)SvRV(urpm), "nofatal", 7, 0);
	  if (!nofatal || !SvIV(*nofatal))
	      croak("cannot open hdlist file %s", filename);
      }
    } else croak("first argument should contain a depslist ARRAY reference");
  } else croak("first argument should be a reference to a HASH");

void
Urpm_parse_rpm(urpm, filename, ...)
  SV *urpm
  char *filename
  PPCODE:
  if (SvROK(urpm) && SvTYPE(SvRV(urpm)) == SVt_PVHV) {
    SV **fdepslist = hv_fetch((HV*)SvRV(urpm), "depslist", 8, 0);
    AV *depslist = fdepslist && SvROK(*fdepslist) && SvTYPE(SvRV(*fdepslist)) == SVt_PVAV ? (AV*)SvRV(*fdepslist) : NULL;
    SV **fprovides = hv_fetch((HV*)SvRV(urpm), "provides", 8, 0);
    HV *provides = fprovides && SvROK(*fprovides) && SvTYPE(SvRV(*fprovides)) == SVt_PVHV ? (HV*)SvRV(*fprovides) : NULL;
    SV **fobsoletes = hv_fetch((HV*)SvRV(urpm), "obsoletes", 8, 0);
    HV *obsoletes = fobsoletes && SvROK(*fobsoletes) && SvTYPE(SvRV(*fobsoletes)) == SVt_PVHV ? (HV*)SvRV(*fobsoletes) : NULL;

    if (depslist != NULL) {
      struct s_Package *_pkg;
      int packing = 0;
      int keep_all_tags = 0;
      SV *callback = NULL;
      rpmVSFlags vsflags = RPMVSF_DEFAULT;

      if (items > 3) {
	int i;
	for (i = 2; i < items-1; i+=2) {
	  STRLEN len;
	  char *s = SvPV(ST(i), len);

	  if (len == 7 && !memcmp(s, "packing", 7))
	    packing = SvTRUE(ST(i + 1));
	  else if (len == 13 && !memcmp(s, "keep_all_tags", 13))
	    keep_all_tags = SvTRUE(ST(i+1));
	  else if (len == 8 && !memcmp(s, "callback", 8) && SvROK(ST(i+1)))
	    callback = ST(i+1);
	  else if (SvIV(ST(i+1))) {
             if (len == 5) {
                if (!memcmp(s, "nopgp", 5))
                  vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER);
                else if (!memcmp(s, "nogpg", 5))
                  vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER);
                else if (!memcmp(s, "nomd5", 5))
                  vsflags |= (RPMVSF_NOMD5 |  RPMVSF_NOMD5HEADER);
                else if (!memcmp(s, "norsa", 5))
                  vsflags |= (RPMVSF_NORSA | RPMVSF_NORSAHEADER);
                else if (!memcmp(s, "nodsa", 5))
                  vsflags |= (RPMVSF_NODSA | RPMVSF_NODSAHEADER);
             } else if (len == 9) {
                if (!memcmp(s, "nodigests", 9))
                  vsflags |= _RPMVSF_NODIGESTS;
                else if (!memcmp(s, "nopayload", 9))
                  vsflags |= _RPMVSF_NOPAYLOAD;
             }
          } 
	}
      }
      PUTBACK;
      _pkg = calloc(1, sizeof(struct s_Package));
      _pkg->flag = 1 + av_len(depslist);

      if (update_header(filename, _pkg, keep_all_tags, vsflags)) {
	push_in_depslist(_pkg, urpm, depslist, callback, provides, obsoletes, packing);
	SPAGAIN;
	/* only one element read */
	mXPUSHs(newSViv(av_len(depslist)));
	mXPUSHs(newSViv(av_len(depslist)));
      } else free(_pkg);
    } else croak("first argument should contain a depslist ARRAY reference");
  } else croak("first argument should be a reference to a HASH");

int
Urpm_verify_rpm(filename, ...)
  char *filename
  PREINIT:
  FD_t fd;
  int i, oldlogmask;
  rpmts ts = NULL;
  struct rpmQVKArguments_s qva;
  CODE:
  /* Don't display error messages */
  oldlogmask = rpmlogSetMask(RPMLOG_UPTO(RPMLOG_PRI(4)));
  memset(&qva, 0, sizeof(struct rpmQVKArguments_s));
  qva.qva_source = RPMQV_RPM;
  qva.qva_flags = VERIFY_ALL;
  for (i = 1 ; i < items - 1 ; i += 2) {
    STRLEN len;
    char *s = SvPV(ST(i), len);
    if (SvIV(ST(i+1))) {
      if (len == 9 && !strncmp(s, "nodigests", 9))
        qva.qva_flags &= ~VERIFY_DIGEST;
      else if (len == 12 && !strncmp(s, "nosignatures", 12))
        qva.qva_flags &= ~VERIFY_SIGNATURE;
    }
  }
  fd = Fopen(filename, "r");
  if (fd == NULL)
    RETVAL = 0;
  else {
    read_config_files(0);
    ts = rpmtsCreate();
    rpmtsSetRootDir(ts, "/");
    rpmtsOpenDB(ts, O_RDONLY);
    RETVAL = rpmVerifySignatures(&qva, ts, fd, filename) ? 0 : 1;
    Fclose(fd);
    (void)rpmtsFree(ts);
  }
  rpmlogSetMask(oldlogmask);

  OUTPUT:
  RETVAL


char *
Urpm_get_gpg_fingerprint(filename)
    char * filename
    PREINIT:
    uint8_t fingerprint[sizeof(pgpKeyID_t)];
    char fingerprint_str[sizeof(pgpKeyID_t) * 2 + 1];
    const uint8_t *pkt = NULL;
    size_t pktlen = 0;
    int rc;

    CODE:
    memset (fingerprint, 0, sizeof (fingerprint));
    if ((rc = pgpReadPkts(filename, (uint8_t ** ) &pkt, &pktlen)) <= 0)
	pktlen = 0;
    else if (rc != PGPARMOR_PUBKEY)
	pktlen = 0;
    else {
	unsigned int i;
        pgpPubkeyFingerprint (pkt, pktlen, fingerprint);
   	for (i = 0; i < sizeof (pgpKeyID_t); i++)
	    sprintf(&fingerprint_str[i*2], "%02x", fingerprint[i]);
    }
    _free(pkt);
    RETVAL = fingerprint_str;
    OUTPUT:
    RETVAL


char *
Urpm_verify_signature(filename, prefix=NULL)
  char *filename
  char *prefix
  PREINIT:
  rpmts ts = NULL;
  char result[1024];
  rpmRC rc;
  FD_t fd;
  Header h;
  CODE:
  fd = Fopen(filename, "r");
  if (fd == NULL)
    RETVAL = "NOT OK (could not read file)";
  else {
    read_config_files(0);
    ts = rpmtsCreate();
    rpmtsSetRootDir(ts, prefix);
    rpmtsOpenDB(ts, O_RDONLY);
    rpmtsSetVSFlags(ts, RPMVSF_DEFAULT);
    rc = rpmReadPackageFile(ts, fd, filename, &h);
    Fclose(fd);
    *result = '\0';
    switch(rc) {
      case RPMRC_OK:
	if (h) {
	  char *fmtsig = headerFormat(
	      h,
	      "%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:"
	      "{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|",
	      NULL);
	  snprintf(result, sizeof(result), "OK (%s)", fmtsig);
	  free(fmtsig);
	} else snprintf(result, sizeof(result), "NOT OK (bad rpm): %s", rpmlogMessage());
	break;
      case RPMRC_NOTFOUND:
	snprintf(result, sizeof(result), "NOT OK (signature not found): %s", rpmlogMessage());
	break;
      case RPMRC_FAIL:
	snprintf(result, sizeof(result), "NOT OK (fail): %s", rpmlogMessage());
	break;
      case RPMRC_NOTTRUSTED:
	snprintf(result, sizeof(result), "NOT OK (key not trusted): %s", rpmlogMessage());
	break;
      case RPMRC_NOKEY:
	snprintf(result, sizeof(result), "NOT OK (no key): %s", rpmlogMessage());
	break;
    }
    RETVAL = result;
    if (h) headerFree(h);
    (void)rpmtsFree(ts);
  }

  OUTPUT:
  RETVAL

    
int
Urpm_import_pubkey_file(db, filename)
    URPM::DB db
    char * filename
    PREINIT:
    const uint8_t *pkt = NULL;
    size_t pktlen = 0;
    int rc;
    CODE:
    rpmts ts = rpmtsLink(db->ts);
    rpmtsClean(ts);
    
    if ((rc = pgpReadPkts(filename, (uint8_t ** ) &pkt, &pktlen)) <= 0)
        RETVAL = 0;
    else if (rc != PGPARMOR_PUBKEY)
        RETVAL = 0;
    else if (rpmtsImportPubkey(ts, pkt, pktlen) != RPMRC_OK)
        RETVAL = 0;
    else
        RETVAL = 1;
    _free(pkt);
    (void)rpmtsFree(ts);
    OUTPUT:
    RETVAL

int
Urpm_archscore(param)
  const char * param
  ALIAS:
         osscore = 1
  PREINIT:
  CODE:
  read_config_files(0);
  RETVAL=rpmMachineScore(ix == 0 ? RPM_MACHTABLE_INSTARCH : RPM_MACHTABLE_INSTOS, param);
  OUTPUT:
  RETVAL


void
Urpm_stream2header(fp)
    FILE *fp
  PREINIT:
    FD_t fd;
    URPM__Package pkg;
  PPCODE:
    if ((fd = fdDup(fileno(fp)))) {
        pkg = (URPM__Package)calloc(1, sizeof(struct s_Package));
        pkg->h = headerRead(fd, HEADER_MAGIC_YES);
        if (pkg->h)
            XPUSHs(sv_setref_pv(sv_newmortal(), "URPM::Package", (void*)pkg));
        else free(pkg);
        Fclose(fd);
    }

void
Urpm_spec2srcheader(specfile)
  char *specfile
  PREINIT:
    URPM__Package pkg;
    Spec spec = NULL;
    Header header = NULL;
  PPCODE:
/* ensure the config is in memory with all macro */
  read_config_files(0);
/* Do not verify architecture */
/* Do not verify whether sources exist */
  spec = rpmSpecParse(specfile, RPMSPEC_ANYARCH|RPMSPEC_FORCE, NULL);
  if (spec) {
    header = rpmSpecSourceHeader(spec);
    pkg = (URPM__Package)calloc(1, sizeof(struct s_Package));
    pkg->h = headerLink(header);
    XPUSHs(sv_setref_pv(sv_newmortal(), "URPM::Package", (void*)pkg));
    rpmSpecFree(spec);
  } else {
    XPUSHs(&PL_sv_undef);
    /* apparently rpmlib sets errno to this when given a bad spec. */
    if (errno == EBADF)
      errno = 0;
  }

void
expand(name)
    char * name
    PPCODE:
    const char * value = rpmExpand(name, NULL);
    mXPUSHs(newSVpv(value, 0));

void
add_macro_noexpand(macro)
    char * macro
    CODE:
    rpmDefineMacro(NULL, macro, RMIL_DEFAULT);

void
del_macro(name)
    char * name
    CODE:
    delMacro(NULL, name);

void
loadmacrosfile(filename)
    char * filename
    PPCODE:
    rpmInitMacros(NULL, filename);

void
resetmacros()
    PPCODE:
    rpmFreeMacros(NULL);

void
setVerbosity(level)
    int level
    PPCODE:
    rpmSetVerbosity(level);

const char *
rpmErrorString()
  CODE:
  RETVAL = rpmlogMessage();
  OUTPUT:
  RETVAL 

void
rpmErrorWriteTo(fd)
  int fd
  CODE:
  rpmError_callback_data = fd;
  rpmlogSetCallback(rpmError_callback, NULL);

  /* vim:set ts=8 sts=2 sw=2: */
id='n5928' href='#n5928'>5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658
# Translation file of Mandrake graphic install
# Copyright (C) 1999,2000 Mandrakesoft
# Jankovic Tomislav <tomaja@net.yu> 1999,2000
#
#
#
msgid ""
msgstr ""
"Project-Id-Version: DrakX VERSION\n"
"POT-Creation-Date: 2000-11-11 21:39+0100\n"
"PO-Revision-Date: 1999-08-09 16:39+0200\n"
"Last-Translator: Jankovic Tomislav_<tomaja@net.yu>\n"
"Language-Team: Serbian (latin)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-2\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../Xconfigurator.pm_.c:179
msgid "Graphic card"
msgstr "Grafička kartica"

#: ../../Xconfigurator.pm_.c:179
msgid "Select a graphic card"
msgstr "Izaberite karticu"

#: ../../Xconfigurator.pm_.c:180
msgid "Choose a X server"
msgstr "Izaberite X server"

#: ../../Xconfigurator.pm_.c:180
msgid "X server"
msgstr "X server"

#: ../../Xconfigurator.pm_.c:217 ../../Xconfigurator.pm_.c:223
#, c-format
msgid "XFree %s"
msgstr "XFree %s"

#: ../../Xconfigurator.pm_.c:220
msgid "Which configuration of XFree do you want to have?"
msgstr "Koju XFree konfiguraciju želite da imate ?"

#: ../../Xconfigurator.pm_.c:232
#, c-format
msgid ""
"Your card can have 3D hardware acceleration support but only with XFree %s.\n"
"Your card is supported by XFree %s which may have a better support in 2D."
msgstr ""
"Vaša kartica može imati 3D hardversku akceleraciju ali samo sa XFree %s.\n"
"Vašu karticu podržava XFree %s koji može imati bolju podršku i za 2D."

#: ../../Xconfigurator.pm_.c:234 ../../Xconfigurator.pm_.c:257
#, c-format
msgid "Your card can have 3D hardware acceleration support with XFree %s."
msgstr "Vaša kartica može imati 3D hardversku akceleraciju sa XFree %s."

#: ../../Xconfigurator.pm_.c:236 ../../Xconfigurator.pm_.c:259
#, c-format
msgid "XFree %s with 3D hardware acceleration"
msgstr "XFree %s sa 3D hardverskom akceleracijom"

#: ../../Xconfigurator.pm_.c:245
#, c-format
msgid ""
"Your card can have 3D hardware acceleration support but only with XFree %s,\n"
"NOTE THIS IS EXPERIMENTAL SUPPORT AND MAY FREEZE YOUR COMPUTER.\n"
"Your card is supported by XFree %s which may have a better support in 2D."
msgstr ""
"Vaša kartica može imati 3D hardversku akceleraciju ali samo sa XFree %s,\n"
"ZAPAMTITE da je ovo EKSPERIMENTALNA podrška za 3D i može dovesti do "
"blokiranja računara.\n"
"Vašu karticu podržava XFree %s koji može imati bolju podršku i za 2D."

#: ../../Xconfigurator.pm_.c:248
#, c-format
msgid ""
"Your card can have 3D hardware acceleration support with XFree %s,\n"
"NOTE THIS IS EXPERIMENTAL SUPPORT AND MAY FREEZE YOUR COMPUTER."
msgstr ""
"Vaša kartica može imati 3D hardversku akceleraciju ali samo sa XFree %s,\n"
"ZAPAMTITE da je ovo EKSPERIMENTALNA podrška za 3D i može dovesti do "
"blokiranja računara."

#: ../../Xconfigurator.pm_.c:250
#, c-format
msgid "XFree %s with EXPERIMENTAL 3D hardware acceleration"
msgstr "XFree %s sa EKSPERIMENTALNOM 3D hardverskom akceleracijom"

#: ../../Xconfigurator.pm_.c:265
msgid "XFree configuration"
msgstr "XFree konfiguracija"

#: ../../Xconfigurator.pm_.c:303
msgid "Select the memory size of your graphic card"
msgstr "Količina memorije na grafičkoj kartici"

#: ../../Xconfigurator.pm_.c:347
msgid "Choose options for server"
msgstr "Opcije za server"

#: ../../Xconfigurator.pm_.c:358
msgid "Choose a monitor"
msgstr "Izaberite monitor"

#: ../../Xconfigurator.pm_.c:358
msgid "Monitor"
msgstr "Monitor"

#: ../../Xconfigurator.pm_.c:361
msgid ""
"The two critical parameters are the vertical refresh rate, which is the "
"rate\n"
"at which the whole screen is refreshed, and most importantly the horizontal\n"
"sync rate, which is the rate at which scanlines are displayed.\n"
"\n"
"It is VERY IMPORTANT that you do not specify a monitor type with a sync "
"range\n"
"that is beyond the capabilities of your monitor: you may damage your "
"monitor.\n"
" If in doubt, choose a conservative setting."
msgstr ""
"Morate da navedete horizontalni sinhronizacioni opseg vašeg monitora.\n"
"Možete ga ili izabrati iz unapred zadatih vrednosti koje odgovaraju\n"
"industrijskim standardima monitora, ili da navedete određeni opseg.\n"
"\n"
"VEOMA JE VAŽNO da ne navedete tip monitora koji ima ovaj opseg veći nego\n"
"što ga ima vaš monitor. Ako niste sigurni, odaberite manje vrednosti."

#: ../../Xconfigurator.pm_.c:368
msgid "Horizontal refresh rate"
msgstr "Horizontalna frekvencija"

#: ../../Xconfigurator.pm_.c:368
msgid "Vertical refresh rate"
msgstr "Vertikalna frekvencija"

#: ../../Xconfigurator.pm_.c:407
msgid "Monitor not configured"
msgstr "Monitor nije konfigurisan"

#: ../../Xconfigurator.pm_.c:410
msgid "Graphic card not configured yet"
msgstr "Grafička karta još nije konfigurisana"

#: ../../Xconfigurator.pm_.c:413
msgid "Resolutions not chosen yet"
msgstr "Rezolucija još nije izabrana"

#: ../../Xconfigurator.pm_.c:429
msgid "Do you want to test the configuration?"
msgstr "Da li hoćete da testirate konfiguraciju?"

#: ../../Xconfigurator.pm_.c:433
msgid "Warning: testing this graphic card may freeze your computer"
msgstr ""
"Upozorenje: testiranje ove grafičke kartice može zamrznuti vaš kompjuter"

#: ../../Xconfigurator.pm_.c:436
msgid "Test of the configuration"
msgstr "Testiranje konfiguracije"

#: ../../Xconfigurator.pm_.c:475
msgid ""
"\n"
"try to change some parameters"
msgstr ""
"\n"
"pokušajte sa promenom parametara"

#: ../../Xconfigurator.pm_.c:475
msgid "An error has occurred:"
msgstr "Hm, greška:"

#: ../../Xconfigurator.pm_.c:497
#, c-format
msgid "Leaving in %d seconds"
msgstr "Izlaz za %d sekundi"

#: ../../Xconfigurator.pm_.c:507
msgid "Is this the correct setting?"
msgstr "Da li je ovo ispravno podešeno?"

#: ../../Xconfigurator.pm_.c:515
msgid "An error has occurred, try to change some parameters"
msgstr "Hm, pojavila se greška, probajte da promenite parametre"

#: ../../Xconfigurator.pm_.c:552 ../../printerdrake.pm_.c:276
msgid "Resolution"
msgstr "Rezolucija"

#: ../../Xconfigurator.pm_.c:587
msgid "Choose the resolution and the color depth"
msgstr "Izaberite rezoluciju i broj boja pri prikazu"

#: ../../Xconfigurator.pm_.c:589
#, c-format
msgid "Graphic card: %s"
msgstr "Grafička kartica: %s"

#: ../../Xconfigurator.pm_.c:590
#, c-format
msgid "XFree86 server: %s"
msgstr "XFree86 server: %s"

#: ../../Xconfigurator.pm_.c:599
msgid "Show all"
msgstr "Prikaži sve"

#: ../../Xconfigurator.pm_.c:623
msgid "Resolutions"
msgstr "Rezolucija"

#: ../../Xconfigurator.pm_.c:1021
#, c-format
msgid "Keyboard layout: %s\n"
msgstr "Tip tastature: %s\n"

#: ../../Xconfigurator.pm_.c:1022
#, c-format
msgid "Mouse type: %s\n"
msgstr "Tip miša: %s\n"

#: ../../Xconfigurator.pm_.c:1023
#, c-format
msgid "Mouse device: %s\n"
msgstr "Miš je postavljen na uređaj: %s\n"

#: ../../Xconfigurator.pm_.c:1024
#, c-format
msgid "Monitor: %s\n"
msgstr "Monitor: %s\n"

#: ../../Xconfigurator.pm_.c:1025
#, c-format
msgid "Monitor HorizSync: %s\n"
msgstr "Monitor - horizontalna frekvencija: %s\n"

#: ../../Xconfigurator.pm_.c:1026
#, c-format
msgid "Monitor VertRefresh: %s\n"
msgstr "Monitor - vertikalno osvežavanje: %s\n"

#: ../../Xconfigurator.pm_.c:1027
#, c-format
msgid "Graphic card: %s\n"
msgstr "Grafička kartica: %s\n"

#: ../../Xconfigurator.pm_.c:1028
#, c-format
msgid "Graphic memory: %s kB\n"
msgstr "Memorija na grafičkoj kartici: %s kB\n"

#: ../../Xconfigurator.pm_.c:1030
#, c-format
msgid "Color depth: %s\n"
msgstr "Broj boja: %s\n"

#: ../../Xconfigurator.pm_.c:1031
#, c-format
msgid "Resolution: %s\n"
msgstr "Rezolucija: %s\n"

#: ../../Xconfigurator.pm_.c:1033
#, c-format
msgid "XFree86 server: %s\n"
msgstr "XFree86 server: %s\n"

#: ../../Xconfigurator.pm_.c:1034
#, c-format
msgid "XFree86 driver: %s\n"
msgstr "XFree86 drajver: %s\n"

#: ../../Xconfigurator.pm_.c:1053
msgid "Preparing X-Window configuration"
msgstr "Provera konfiguracije za X-Window sistem"

#: ../../Xconfigurator.pm_.c:1067
msgid "Change Monitor"
msgstr "Promena monitora"

#: ../../Xconfigurator.pm_.c:1068
msgid "Change Graphic card"
msgstr "Promena grafičke kartice"

#: ../../Xconfigurator.pm_.c:1069
msgid "Change Server options"
msgstr "Promena Server opcija"

#: ../../Xconfigurator.pm_.c:1070
msgid "Change Resolution"
msgstr "Promena rezolucije"

#: ../../Xconfigurator.pm_.c:1071
msgid "Show information"
msgstr "Prikaži informacije"

#: ../../Xconfigurator.pm_.c:1072
msgid "Test again"
msgstr "Testiraj ponovo"

#: ../../Xconfigurator.pm_.c:1073 ../../standalone/rpmdrake_.c:46
msgid "Quit"
msgstr "Kraj"

#: ../../Xconfigurator.pm_.c:1077 ../../standalone/drakboot_.c:40
msgid "What do you want to do?"
msgstr "Šta želite da uradite?"

#: ../../Xconfigurator.pm_.c:1084
#, c-format
msgid ""
"Keep the changes?\n"
"Current configuration is:\n"
"\n"
"%s"
msgstr ""
"Sačuvaj promene?\n"
"Trenutna konfiguracija je:\n"
"\n"
"%s"

#: ../../Xconfigurator.pm_.c:1105
#, c-format
msgid "Please relog into %s to activate the changes"
msgstr "Molim, ponovo unesite %s radi aktiviranja promena"

#: ../../Xconfigurator.pm_.c:1125
msgid "Please log out and then use Ctrl-Alt-BackSpace"
msgstr "Molim vaš izlogujte se i restartujte (Ctrl-Alt-BackSpace) računar"

#: ../../Xconfigurator.pm_.c:1128
msgid "X at startup"
msgstr "X okruženje na startu"

#: ../../Xconfigurator.pm_.c:1129
msgid ""
"I can set up your computer to automatically start X upon booting.\n"
"Would you like X to start when you reboot?"
msgstr ""
"Ja mogu podesti vaš računar da automatski podiže X okruženje pri startanju.\n"
"Da li želite X okruženje pri restartu ?"

#: ../../Xconfigurator.pm_.c:1153
msgid "Autologin"
msgstr "Auto logovanje"

#: ../../Xconfigurator.pm_.c:1154
msgid ""
"I can set up your computer to automatically log on one user.\n"
"If you don't want to use this feature, click on the cancel button."
msgstr ""
"Ja mogu podesti vaš računar da automatski uloguje jednog korisnika.\n"
"Ukoliko ne želite da koristite ovu opciju, kliknite na  taster "
"poništi(cancel) ?"

#: ../../Xconfigurator.pm_.c:1156
msgid "Choose the default user:"
msgstr "Izaberite default (osnovnog) korisnika:"

#: ../../Xconfigurator.pm_.c:1157
msgid "Choose the window manager to run:"
msgstr "Izaberite window menadzer koji želite da koristite:"

#: ../../Xconfigurator_consts.pm_.c:6
msgid "256 colors (8 bits)"
msgstr "256 boja (8-bitna paleta)"

#: ../../Xconfigurator_consts.pm_.c:7
msgid "32 thousand colors (15 bits)"
msgstr "32 hiljade boja (15-bitna paleta)"

#: ../../Xconfigurator_consts.pm_.c:8
msgid "65 thousand colors (16 bits)"
msgstr "65 hiljada boja (16-bitna paleta)"

#: ../../Xconfigurator_consts.pm_.c:9
msgid "16 million colors (24 bits)"
msgstr "16 miliona boja (24-bitna paleta)"

#: ../../Xconfigurator_consts.pm_.c:10
msgid "4 billion colors (32 bits)"
msgstr "4 milijarde boja (32-bitna paleta)"

#: ../../Xconfigurator_consts.pm_.c:106
msgid "256 kB"
msgstr "256 kB"

#: ../../Xconfigurator_consts.pm_.c:107
msgid "512 kB"
msgstr "512 kB"

#: ../../Xconfigurator_consts.pm_.c:108
msgid "1 MB"
msgstr "1 MB"

#: ../../Xconfigurator_consts.pm_.c:109
msgid "2 MB"
msgstr "2 MB"

#: ../../Xconfigurator_consts.pm_.c:110
msgid "4 MB"
msgstr "4 MB"

#: ../../Xconfigurator_consts.pm_.c:111
msgid "8 MB"
msgstr "8 MB"

#: ../../Xconfigurator_consts.pm_.c:112
msgid "16 MB or more"
msgstr "16 MB ili više"

#: ../../Xconfigurator_consts.pm_.c:117 ../../Xconfigurator_consts.pm_.c:118
msgid "Standard VGA, 640x480 at 60 Hz"
msgstr "Standardni VGA, 640x480 na 60 Hz"

#: ../../Xconfigurator_consts.pm_.c:119
msgid "Super VGA, 800x600 at 56 Hz"
msgstr "Super VGA, 800x600 na 56 Hz"

#: ../../Xconfigurator_consts.pm_.c:120
msgid "8514 Compatible, 1024x768 at 87 Hz interlaced (no 800x600)"
msgstr "8514 kompat., 1024x768 na 87 Hz sa preplitanjem (ne 800x600)"

#: ../../Xconfigurator_consts.pm_.c:121
msgid "Super VGA, 1024x768 at 87 Hz interlaced, 800x600 at 56 Hz"
msgstr "Super VGA, 1024x768 na 87 Hz sa preplitanjem, 800x600 na 56 Hz"

#: ../../Xconfigurator_consts.pm_.c:122
msgid "Extended Super VGA, 800x600 at 60 Hz, 640x480 at 72 Hz"
msgstr "Extended Super VGA, 800x600 na 60 Hz, 640x480 na 72 Hz"

#: ../../Xconfigurator_consts.pm_.c:123
msgid "Non-Interlaced SVGA, 1024x768 at 60 Hz, 800x600 at 72 Hz"
msgstr "SVGA bez preplitanja, 1024x768 na 60 Hz, 800x600 na 72 Hz"

#: ../../Xconfigurator_consts.pm_.c:124
msgid "High Frequency SVGA, 1024x768 at 70 Hz"
msgstr "Visokofrekventni SVGA, 1024x768 na 70 Hz"

#: ../../Xconfigurator_consts.pm_.c:125
msgid "Multi-frequency that can do 1280x1024 at 60 Hz"
msgstr "Monitor koji radi sa 1280x1024 na 60 Hz"

#: ../../Xconfigurator_consts.pm_.c:126
msgid "Multi-frequency that can do 1280x1024 at 74 Hz"
msgstr "Monitor koji radi sa 1280x1024 na 74 Hz"

#: ../../Xconfigurator_consts.pm_.c:127
msgid "Multi-frequency that can do 1280x1024 at 76 Hz"
msgstr "Monitor koji radi sa 1280x1024 na 76 Hz"

#: ../../Xconfigurator_consts.pm_.c:128
msgid "Monitor that can do 1600x1200 at 70 Hz"
msgstr "Monitor koji radi sa 1600x1200 na 70 Hz"

#: ../../Xconfigurator_consts.pm_.c:129
msgid "Monitor that can do 1600x1200 at 76 Hz"
msgstr "Monitor koji radi sa 1600x1200 na 76 Hz"

#: ../../any.pm_.c:91 ../../any.pm_.c:121 ../../any_new.pm_.c:91
#: ../../any_new.pm_.c:121
msgid "First sector of boot partition"
msgstr "Prvi sektor startne particije"

#: ../../any.pm_.c:91 ../../any.pm_.c:121 ../../any.pm_.c:150
#: ../../any_new.pm_.c:91 ../../any_new.pm_.c:121 ../../any_new.pm_.c:150
msgid "First sector of drive (MBR)"
msgstr "Prvi sektor diska (MBR)"

#: ../../any.pm_.c:95 ../../any_new.pm_.c:95
msgid "SILO Installation"
msgstr "SILO instalacija"

#: ../../any.pm_.c:96 ../../any.pm_.c:102 ../../any_new.pm_.c:96
#: ../../any_new.pm_.c:102
msgid "Where do you want to install the bootloader?"
msgstr "Gde biste da instalirate starter?"

#: ../../any.pm_.c:101 ../../any_new.pm_.c:101
msgid "LILO/grub Installation"
msgstr "LILO/grub instalacija"

#: ../../any.pm_.c:111 ../../any_new.pm_.c:111
#: ../../install_steps_interactive.pm_.c:736
msgid "None"
msgstr "Nijedan"

#: ../../any.pm_.c:111 ../../any_new.pm_.c:111
msgid "Which bootloader(s) do you want to use?"
msgstr "Koji starter želite da koristite ?"

#: ../../any.pm_.c:125 ../../any_new.pm_.c:125
msgid "Bootloader installation"
msgstr "Instalacija startera"

#: ../../any.pm_.c:127 ../../any_new.pm_.c:127
msgid "Boot device"
msgstr "Startni (boot) uređaj"

#: ../../any.pm_.c:128 ../../any_new.pm_.c:128
msgid "LBA (doesn't work on old BIOSes)"
msgstr "LBA (ne radi na starim BIOS-ima)"

#: ../../any.pm_.c:129 ../../any_new.pm_.c:129
msgid "Compact"
msgstr "Kompakt"

#: ../../any.pm_.c:129 ../../any_new.pm_.c:129
msgid "compact"
msgstr "kompakt"

#: ../../any.pm_.c:130 ../../any.pm_.c:199 ../../any_new.pm_.c:130
#: ../../any_new.pm_.c:199
msgid "Video mode"
msgstr "Video mod"

#: ../../any.pm_.c:132 ../../any_new.pm_.c:132
msgid "Delay before booting default image"
msgstr "Pauza pre startanja default image-a"

#: ../../any.pm_.c:134 ../../any_new.pm_.c:134
#: ../../install_steps_interactive.pm_.c:764
#: ../../install_steps_interactive.pm_.c:815 ../../netconnect.pm_.c:560
#: ../../netconnect_new.pm_.c:686 ../../printerdrake.pm_.c:94
#: ../../printerdrake.pm_.c:128 ../../standalone/adduserdrake_.c:42
msgid "Password"
msgstr "Lozinka"

#: ../../any.pm_.c:135 ../../any_new.pm_.c:135
#: ../../install_steps_interactive.pm_.c:765
#: ../../install_steps_interactive.pm_.c:816
#: ../../standalone/adduserdrake_.c:43
msgid "Password (again)"
msgstr "Lozinka (ponovite)"

#: ../../any.pm_.c:136 ../../any_new.pm_.c:136
msgid "Restrict command line options"
msgstr "Ograničena komandna linika - opcije"

#: ../../any.pm_.c:136 ../../any_new.pm_.c:136
msgid "restrict"
msgstr "ograničeno"

#: ../../any.pm_.c:142 ../../any_new.pm_.c:142
msgid "Bootloader main options"
msgstr "Glavne opcije startera"

#: ../../any.pm_.c:145 ../../any_new.pm_.c:145
msgid ""
"Option ``Restrict command line options'' is of no use without a password"
msgstr ""
"Opcija``Ograničena komandna linika - opcije'' je neupotrebljiva bez lozinke"

#: ../../any.pm_.c:146 ../../any_new.pm_.c:146
#: ../../install_steps_interactive.pm_.c:774
#: ../../install_steps_interactive.pm_.c:829
#: ../../standalone/adduserdrake_.c:56
msgid "Please try again"
msgstr "Probajte ponovo"

#: ../../any.pm_.c:146 ../../any_new.pm_.c:146
#: ../../install_steps_interactive.pm_.c:774
#: ../../install_steps_interactive.pm_.c:829
#: ../../standalone/adduserdrake_.c:56
msgid "The passwords do not match"
msgstr "Nepodudarnost lozinki"

#: ../../any.pm_.c:157 ../../any_new.pm_.c:157
msgid ""
"Here are the different entries.\n"
"You can add some more or change the existing ones."
msgstr ""
"Ovo su postavljne opcije.\n"
"Možete dodati nove ili izmeniti stare."

#: ../../any.pm_.c:165 ../../any_new.pm_.c:165 ../../printerdrake.pm_.c:352
#: ../../standalone/rpmdrake_.c:302
msgid "Add"
msgstr "Dodaj"

#: ../../any.pm_.c:165 ../../any_new.pm_.c:165 ../../diskdrake.pm_.c:46
#: ../../install_steps_interactive.pm_.c:809 ../../netconnect.pm_.c:842
#: ../../netconnect_new.pm_.c:984 ../../printerdrake.pm_.c:352
#: ../../standalone/adduserdrake_.c:36
msgid "Done"
msgstr "Urađeno"

#: ../../any.pm_.c:174 ../../any_new.pm_.c:174
msgid "Which type of entry do you want to add?"
msgstr "Koju vrstu unosa dodajete ?"

#: ../../any.pm_.c:175 ../../any_new.pm_.c:175
msgid "Linux"
msgstr "Linux"

#: ../../any.pm_.c:175 ../../any_new.pm_.c:175
msgid "Other OS (SunOS...)"
msgstr "Drugi OS-ovi (SunOS,Windows,BSD,BeOS,...)"

#: ../../any.pm_.c:175 ../../any_new.pm_.c:175
msgid "Other OS (windows...)"
msgstr "Drugi OS-ovi (Windows,BSD,BeOS,...)"

#: ../../any.pm_.c:196 ../../any_new.pm_.c:196
msgid "Image"
msgstr "Slika"

#: ../../any.pm_.c:197 ../../any.pm_.c:206 ../../any_new.pm_.c:197
#: ../../any_new.pm_.c:206
msgid "Root"
msgstr "Root"

#: ../../any.pm_.c:198 ../../any_new.pm_.c:198
msgid "Append"
msgstr "Dodatak"

#: ../../any.pm_.c:200 ../../any_new.pm_.c:200
msgid "Initrd"
msgstr "Initrd"

#: ../../any.pm_.c:201 ../../any_new.pm_.c:201
msgid "Read-write"
msgstr "Čitanje-pisanje RW"

#: ../../any.pm_.c:208 ../../any_new.pm_.c:208
msgid "Table"
msgstr "Tabela"

#: ../../any.pm_.c:209 ../../any_new.pm_.c:209
msgid "Unsafe"
msgstr "Nesigurno"

#: ../../any.pm_.c:215 ../../any_new.pm_.c:215
msgid "Label"
msgstr "Oznaka"

#: ../../any.pm_.c:217 ../../any_new.pm_.c:217
msgid "Default"
msgstr "Podrazumevano"

#: ../../any.pm_.c:220 ../../any_new.pm_.c:220 ../../install_gtk.pm_.c:82
#: ../../install_steps_interactive.pm_.c:762 ../../interactive.pm_.c:76
#: ../../interactive.pm_.c:86 ../../interactive.pm_.c:250
#: ../../interactive_newt.pm_.c:51 ../../interactive_newt.pm_.c:99
#: ../../interactive_stdio.pm_.c:27 ../../my_gtk.pm_.c:243
#: ../../my_gtk.pm_.c:486 ../../my_gtk.pm_.c:661 ../../printerdrake.pm_.c:444
#: ../../printerdrake.pm_.c:464
msgid "Ok"
msgstr "U redu"

#: ../../any.pm_.c:220 ../../any_new.pm_.c:220
msgid "Remove entry"
msgstr "Uklanjam unos"

#: ../../any.pm_.c:223 ../../any_new.pm_.c:223
msgid "Empty label not allowed"
msgstr "Prazna oznaka nije dozvoljena"

#: ../../any.pm_.c:224 ../../any_new.pm_.c:224
msgid "This label is already used"
msgstr "Ova oznaka je već u upotrebi"

#: ../../any.pm_.c:500 ../../any_new.pm_.c:492
#, c-format
msgid "Found %s %s interfaces"
msgstr "Pronađeno  %s %s interfejsa"

#: ../../any.pm_.c:501 ../../any_new.pm_.c:493
msgid "Do you have another one?"
msgstr "Da li imate još jedan?"

#: ../../any.pm_.c:502 ../../any_new.pm_.c:494
#, c-format
msgid "Do you have any %s interfaces?"
msgstr "Imate li još %s interfejsa?"

#: ../../any.pm_.c:504 ../../any_new.pm_.c:496 ../../interactive.pm_.c:81
#: ../../my_gtk.pm_.c:485 ../../netconnect.pm_.c:90 ../../netconnect.pm_.c:470
#: ../../netconnect_new.pm_.c:148 ../../netconnect_new.pm_.c:509
#: ../../printerdrake.pm_.c:233
msgid "No"
msgstr "Ne"

#: ../../any.pm_.c:504 ../../any_new.pm_.c:496 ../../interactive.pm_.c:81
#: ../../my_gtk.pm_.c:485 ../../netconnect.pm_.c:88 ../../netconnect.pm_.c:468
#: ../../netconnect_new.pm_.c:146 ../../netconnect_new.pm_.c:507
msgid "Yes"
msgstr "Da"

#: ../../any.pm_.c:505 ../../any_new.pm_.c:497
msgid "See hardware info"
msgstr "Pogledaj informacije o hardveru"

#. -PO: the first %s is the card type (scsi, network, sound,...)
#. -PO: the second is the vendor+model name
#: ../../any.pm_.c:522 ../../any_new.pm_.c:533
#, c-format
msgid "Installing driver for %s card %s"
msgstr "Instaliram drajver za %s karticu %s"

#: ../../any.pm_.c:523 ../../any_new.pm_.c:534
#, c-format
msgid "(module %s)"
msgstr "(modul %s)"

#. -PO: the %s is the driver type (scsi, network, sound,...)
#: ../../any.pm_.c:534 ../../any_new.pm_.c:545
#, c-format
msgid "Which %s driver should I try?"
msgstr "Koji %s drajver da probam?"

#: ../../any.pm_.c:542 ../../any_new.pm_.c:553
#, c-format
msgid ""
"In some cases, the %s driver needs to have extra information to work\n"
"properly, although it normally works fine without. 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 ""
"U nekim slučajevima, drajver %s zahteva dodatne informacije\n"
"za pravilan rad, mada može lepo da radi i bez njih. Da li hoćete\n"
"sami da unesete dodatne podatke za njega, ili da ih drajver sam odredi?\n"
"Moguće je da će proba zaglaviti vaš računar, ali neće naneti nikakvu štetu."

#: ../../any.pm_.c:547 ../../any_new.pm_.c:558
msgid "Autoprobe"
msgstr "Automatska proba"

#: ../../any.pm_.c:547 ../../any_new.pm_.c:558
msgid "Specify options"
msgstr "Navedite opcije"

#: ../../any.pm_.c:551 ../../any_new.pm_.c:562
#, c-format
msgid "You may now provide its options to module %s."
msgstr "Možete navesti njegove opcije za modul %s."

#: ../../any.pm_.c:557 ../../any_new.pm_.c:568
#, c-format
msgid ""
"You may now provide its options to module %s.\n"
"Options are in format ``name=value name2=value2 ...''.\n"
"For instance, ``io=0x300 irq=7''"
msgstr ""
"Možete navesti njegove opcije za modul %s.\n"
"Opcije su u formatu ``ime=vrednost ime2=vrednost2 ...''.\n"
"Na primer, ``io=0x300 irq=7''"

#: ../../any.pm_.c:560 ../../any_new.pm_.c:571
msgid "Module options:"
msgstr "Opcije modula:"

#: ../../any.pm_.c:570 ../../any_new.pm_.c:581
#, c-format
msgid ""
"Loading module %s failed.\n"
"Do you want to try again with other parameters?"
msgstr ""
"Podizanje modula %s neuspelo.\n"
"Da li želite pokušate ponovo sa drugim parametrima ?"

# NOTE: this message will be displayed at boot time; that is
# only the ascii charset will be available on most machines
# so use only 7bit for this message (and do transliteration or
# leave it in English, as it is the best for your language)
#
#: ../../bootloader.pm_.c:234
#, fuzzy, c-format
msgid ""
"Welcome to %s the operating system chooser!\n"
"\n"
"Choose an operating system in the list above or\n"
"wait %d seconds for default boot.\n"
"\n"
msgstr ""
"Dobrodosli u %s, menadzer za startanje operativnih sistema !\n"
"\n"
"Za prikaz mogucih opcija, pritisnite <TAB>.\n"
"\n"
"Za startanje jedne od njih, upisite njeno ime i pritisnite <ENTER>\n"
"ili sacekate %d sekundi za startanje pretpostavljenog OS.\n"

# NOTE: this message will be displayed by grub at boot time; that is
# using the BIOS font; that means cp437 charset on 99.99% of PC computers
# out there. It is the nsuggested that for non latin languages an ascii
# transliteration be used; or maybe the english text be used; as it is best
#
# The lines must fit on screen, aka length < 80
#
#: ../../bootloader.pm_.c:596
msgid "Welcome to GRUB the operating system chooser!"
msgstr "Dobrodosli u GRUB  starter operativnog sistema !"

# NOTE: this message will be displayed by grub at boot time; that is
# using the BIOS font; that means cp437 charset on 99.99% of PC computers
# out there. It is the nsuggested that for non latin languages an ascii
# transliteration be used; or maybe the english text be used; as it is best
#
# The lines must fit on screen, aka length < 80
#
#: ../../bootloader.pm_.c:597
#, c-format
msgid "Use the %c and %c keys for selecting which entry is highlighted."
msgstr "Koristi  %c i %c slova da bi oznacili izbor"

# NOTE: this message will be displayed by grub at boot time; that is
# using the BIOS font; that means cp437 charset on 99.99% of PC computers
# out there. It is the nsuggested that for non latin languages an ascii
# transliteration be used; or maybe the english text be used; as it is best
#
# The lines must fit on screen, aka length < 80
#
#: ../../bootloader.pm_.c:598
msgid "Press enter to boot the selected OS, 'e' to edit the"
msgstr "Pritisnite enter za podizanje izabranog OS,'e' za promenu "

# NOTE: this message will be displayed by grub at boot time; that is
# using the BIOS font; that means cp437 charset on 99.99% of PC computers
# out there. It is the nsuggested that for non latin languages an ascii
# transliteration be used; or maybe the english text be used; as it is best
#
# The lines must fit on screen, aka length < 80
#
#: ../../bootloader.pm_.c:599
msgid "commands before booting, or 'c' for a command-line."
msgstr "komandi pri  podizanju sistema,ili  'c' za komandnu liniju "

# NOTE: this message will be displayed by grub at boot time; that is
# using the BIOS font; that means cp437 charset on 99.99% of PC computers
# out there. It is the nsuggested that for non latin languages an ascii
# transliteration be used; or maybe the english text be used; as it is best
#
# The lines must fit on screen, aka length < 80
#
#: ../../bootloader.pm_.c:600
#, c-format
msgid "The highlighted entry will be booted automatically in %d seconds."
msgstr "Oznaceni izbor se podize automatski za %d sekundi"

#: ../../bootloader.pm_.c:604
msgid "not enough room in /boot"
msgstr "nema dovoljno mesta u /boot"

#. -PO: "Desktop" and "Start Menu" are the name of the directories found in c:\windows
#: ../../bootloader.pm_.c:696
msgid "Desktop"
msgstr "Desktop"

#: ../../bootloader.pm_.c:696
msgid "Start Menu"
msgstr "Start meni "

#: ../../common.pm_.c:610
#, c-format
msgid "%d minutes"
msgstr "%d minuta"

#: ../../common.pm_.c:612
msgid "1 minute"
msgstr "1 minut"

#: ../../common.pm_.c:614
#, c-format
msgid "%d seconds"
msgstr "%d sekundi"

#: ../../diskdrake.pm_.c:21 ../../diskdrake.pm_.c:427
msgid "Create"
msgstr "Kreiraj"

#: ../../diskdrake.pm_.c:22
msgid "Unmount"
msgstr "Demontiraj"

#: ../../diskdrake.pm_.c:23 ../../diskdrake.pm_.c:429
msgid "Delete"
msgstr "Obriši"

#: ../../diskdrake.pm_.c:23
msgid "Format"
msgstr "Formatiranje"

#: ../../diskdrake.pm_.c:23 ../../diskdrake.pm_.c:610
msgid "Resize"
msgstr "Promeni veličinu"

#: ../../diskdrake.pm_.c:23 ../../diskdrake.pm_.c:427
#: ../../diskdrake.pm_.c:480
msgid "Type"
msgstr "Tip"

#: ../../diskdrake.pm_.c:24 ../../diskdrake.pm_.c:500
msgid "Mount point"
msgstr "Tačka montiranja"

#: ../../diskdrake.pm_.c:38
msgid "Write /etc/fstab"
msgstr "Ispiši /etc/fstab"

#: ../../diskdrake.pm_.c:39
msgid "Toggle to expert mode"
msgstr "Pređi na ekspert mod"

#: ../../diskdrake.pm_.c:40
msgid "Toggle to normal mode"
msgstr "Pređi na normalni mod"

#: ../../diskdrake.pm_.c:41
msgid "Restore from file"
msgstr "Povrati (restore) iz fajla"

#: ../../diskdrake.pm_.c:42
msgid "Save in file"
msgstr "Snimi u fajl"

#: ../../diskdrake.pm_.c:43
msgid "Wizard"
msgstr "čarobnjak (pomoćnik)"

#: ../../diskdrake.pm_.c:44
msgid "Restore from floppy"
msgstr "Povrati (restore) sa diskete"

#: ../../diskdrake.pm_.c:45
msgid "Save on floppy"
msgstr "Snimi na disketu"

#: ../../diskdrake.pm_.c:49
msgid "Clear all"
msgstr "Očisti sve"

#: ../../diskdrake.pm_.c:50
msgid "Format all"
msgstr "Formatiraj sve"

#: ../../diskdrake.pm_.c:51
msgid "Auto allocate"
msgstr "Auto dislociranje"

#: ../../diskdrake.pm_.c:54
msgid "All primary partitions are used"
msgstr "Sve primarne particije su zauzete"

#: ../../diskdrake.pm_.c:54
msgid "I can't add any more partition"
msgstr "Ne mogu dodati više ni jednu particiju"

#: ../../diskdrake.pm_.c:54
msgid ""
"To have more partitions, please delete one to be able to create an extended "
"partition"
msgstr ""
"Da bi omogućili kreiranje još (extended) particija izbrišite jednu od "
"postojećih"

#: ../../diskdrake.pm_.c:57
msgid "Rescue partition table"
msgstr "Spasi  tabelu particija"

#: ../../diskdrake.pm_.c:58
msgid "Undo"
msgstr "Poništi radnju"

#: ../../diskdrake.pm_.c:59
msgid "Write partition table"
msgstr "Upiši tabelu particija"

#: ../../diskdrake.pm_.c:60
msgid "Reload"
msgstr "Ponovo unesi"

#: ../../diskdrake.pm_.c:101
msgid "loopback"
msgstr "povratno"

#: ../../diskdrake.pm_.c:114
msgid "Ext2"
msgstr "Ext2"

#: ../../diskdrake.pm_.c:114
msgid "FAT"
msgstr "FAT"

#: ../../diskdrake.pm_.c:114
msgid "HFS"
msgstr "HFS"

#: ../../diskdrake.pm_.c:114
msgid "SunOS"
msgstr "SunOS"

#: ../../diskdrake.pm_.c:114
msgid "Swap"
msgstr "Swap"

#: ../../diskdrake.pm_.c:115
msgid "Empty"
msgstr "Prazno"

#: ../../diskdrake.pm_.c:115 ../../mouse.pm_.c:125
msgid "Other"
msgstr "Drugo"

#: ../../diskdrake.pm_.c:121
msgid "Filesystem types:"
msgstr "Vrsta fajl sistema:"

#: ../../diskdrake.pm_.c:130
msgid "Details"
msgstr "Detalji"

#: ../../diskdrake.pm_.c:144
msgid ""
"You have one big FAT partition\n"
"(generally used by MicroSoft Dos/Windows).\n"
"I suggest you first resize that partition\n"
"(click on it, then click on \"Resize\")"
msgstr ""
"Disk sadrži jednu veliku FAT particiju\n"
"(uglavnom je koriste MicroSoft Dos/Windows-i, na žalost).\n"
"Predlažem da prvo izmenite veličnu (resize) te particije (kliknite na nju,\n"
"a potom na \"Promeni veličinu\")"

#: ../../diskdrake.pm_.c:149
msgid "Please make a backup of your data first"
msgstr "Molim vas, prvo napravite kopiju vaših podataka"

#: ../../diskdrake.pm_.c:149 ../../diskdrake.pm_.c:166
#: ../../diskdrake.pm_.c:175 ../../diskdrake.pm_.c:532
#: ../../diskdrake.pm_.c:554
msgid "Read carefully!"
msgstr "PAŽLJIVO PROČITAJ !"

#: ../../diskdrake.pm_.c:152
msgid ""
"If you plan to use aboot, be carefull to leave a free space (2048 sectors is "
"enough)\n"
"at the beginning of the disk"
msgstr ""
"Ukoliko planirate da koristite  aboot, ostavite prazan prostor (2048 "
"sektorana početku \n"
"diska)"

#: ../../diskdrake.pm_.c:166
msgid "Be careful: this operation is dangerous."
msgstr "PAŽLJIVO,ova operacija je opasna."

#: ../../diskdrake.pm_.c:203 ../../install_steps.pm_.c:73
#: ../../install_steps_interactive.pm_.c:38
#: ../../install_steps_interactive.pm_.c:315 ../../standalone/diskdrake_.c:60
#: ../../standalone/rpmdrake_.c:294 ../../standalone/rpmdrake_.c:304
msgid "Error"
msgstr "Greška"

#: ../../diskdrake.pm_.c:227 ../../diskdrake.pm_.c:708
msgid "Mount point: "
msgstr "Tačka montiranja: "

#: ../../diskdrake.pm_.c:228 ../../diskdrake.pm_.c:269
msgid "Device: "
msgstr "Uređaj: "

#: ../../diskdrake.pm_.c:229
#, c-format
msgid "DOS drive letter: %s (just a guess)\n"
msgstr "Oznaka DOS particije: %s (samo pretpostavka)\n"

#: ../../diskdrake.pm_.c:230 ../../diskdrake.pm_.c:272
msgid "Type: "
msgstr "Unesi: "

#: ../../diskdrake.pm_.c:231
#, c-format
msgid "Start: sector %s\n"
msgstr "Početak: sektor %s\n"

#: ../../diskdrake.pm_.c:232
#, c-format
msgid "Size: %d MB"
msgstr "Veličina: %d MB"

#: ../../diskdrake.pm_.c:234
#, c-format
msgid ", %s sectors"
msgstr ", %s sektora"

#: ../../diskdrake.pm_.c:236
#, c-format
msgid "Cylinder %d to cylinder %d\n"
msgstr "Cilindar %d do cilindra %d\n"

#: ../../diskdrake.pm_.c:237
msgid "Formatted\n"
msgstr "Formatirano\n"

#: ../../diskdrake.pm_.c:238
msgid "Not formatted\n"
msgstr "Nije formatirano\n"

#: ../../diskdrake.pm_.c:239
msgid "Mounted\n"
msgstr "Montirano\n"

#: ../../diskdrake.pm_.c:240
#, c-format
msgid "RAID md%s\n"
msgstr "RAID md%s\n"

#: ../../diskdrake.pm_.c:241
#, c-format
msgid "Loopback file(s): %s\n"
msgstr "Loopback fajl(ovi): %s\n"

#: ../../diskdrake.pm_.c:242
msgid ""
"Partition booted by default\n"
"    (for MS-DOS boot, not for lilo)\n"
msgstr ""
"Boot particija po default-u\n"
"   (za podizanje MS-DOSa, ne za lilo)\n"

#: ../../diskdrake.pm_.c:244
#, c-format
msgid "Level %s\n"
msgstr "Nivo %s\n"

#: ../../diskdrake.pm_.c:245
#, c-format
msgid "Chunk size %s\n"
msgstr "Chunk-uj %s\n"

#: ../../diskdrake.pm_.c:246
#, c-format
msgid "RAID-disks %s\n"
msgstr "RAID-diskovi %s\n"

#: ../../diskdrake.pm_.c:248
#, c-format
msgid "Loopback file name: %s"
msgstr "Ime Loopback fajla: %s"

#: ../../diskdrake.pm_.c:265
msgid "Please click on a partition"
msgstr "Kliknite na particiju"

#: ../../diskdrake.pm_.c:270
#, c-format
msgid "Size: %d MB\n"
msgstr "Veličina: %d MB\n"

#: ../../diskdrake.pm_.c:271
#, c-format
msgid "Geometry: %s cylinders, %s heads, %s sectors\n"
msgstr "Geometrija: %s cilindara, %s glava, %s sektora\n"

#: ../../diskdrake.pm_.c:273
#, c-format
msgid "Partition table type: %s\n"
msgstr "Tip tabele particija : %s\n"

#: ../../diskdrake.pm_.c:274
#, c-format
msgid "on bus %d id %d\n"
msgstr "na busu %d ID %d\n"

#: ../../diskdrake.pm_.c:290
msgid "Mount"
msgstr "Montiraj"

#: ../../diskdrake.pm_.c:292
msgid "Active"
msgstr "Aktiviraj"

#: ../../diskdrake.pm_.c:294
msgid "Add to RAID"
msgstr "Dodaj na RAID"

#: ../../diskdrake.pm_.c:296
msgid "Remove from RAID"
msgstr "Ukloni sa RAID-a"

#: ../../diskdrake.pm_.c:298
msgid "Modify RAID"
msgstr "Promeni RAID"

#: ../../diskdrake.pm_.c:300
msgid "Use for loopback"
msgstr "Koristi za loopback"

#: ../../diskdrake.pm_.c:307
msgid "Choose action"
msgstr "Izaberite akciju"

#: ../../diskdrake.pm_.c:400
msgid ""
"Sorry I won't accept to create /boot so far onto the drive (on a cylinder > "
"1024).\n"
"Either you use LILO and it won't work, or you don't use LILO and you don't "
"need /boot"
msgstr ""
"Nije moguće kreirati /boot za sada na hard disku (na cilindru > 1024).\n"
"Ili koristite LILO koji ne radi, ili ga ne koristite pa vam ne treba /boot"

#: ../../diskdrake.pm_.c:404
msgid ""
"The partition you've selected to add as root (/) is physically located "
"beyond\n"
"the 1024th cylinder of the hard drive, and you have no /boot partition.\n"
"If you plan to use the LILO boot manager, be careful to add a /boot partition"
msgstr ""
"Particija koju ste izabrali za root (/) je fizički locirana iznad\n"
"1024-tog cilindra hard diska,i nemate /boot particiju.\n"
"Ukoliko planirate da korisitite LILO boot menadžer, morate\n"
"dodati /boot particiji."

#: ../../diskdrake.pm_.c:410
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
"So be careful to add a /boot partition"
msgstr ""
"Izabrali ste softversku RAID particiju kao root (/).\n"
"Nijedan starter ne može da radi sa tim bez /boot particije.\n"
"Zato pazite da dodate /boot particiju"

#: ../../diskdrake.pm_.c:427 ../../diskdrake.pm_.c:429
#, c-format
msgid "Use ``%s'' instead"
msgstr "Umesto toga probajte ``%s''"

#: ../../diskdrake.pm_.c:432
msgid "Use ``Unmount'' first"
msgstr "Prvo uradite ``Demontiraj''"

#: ../../diskdrake.pm_.c:433 ../../diskdrake.pm_.c:475
#, c-format
msgid ""
"After changing type of partition %s, all data on this partition will be lost"
msgstr ""
"Posle promene tipa particije %s, svi podaci na ovoj particiji će biti "
"izbrisani"

#: ../../diskdrake.pm_.c:445
msgid "Continue anyway?"
msgstr "Svejedno nastaviti ?"

#: ../../diskdrake.pm_.c:450
msgid "Quit without saving"
msgstr "Kraj bez snimanja promena"

#: ../../diskdrake.pm_.c:450
msgid "Quit without writing the partition table?"
msgstr "Kraj bez snimanja promena u tabele particija?"

#: ../../diskdrake.pm_.c:478
msgid "Change partition type"
msgstr "Promena tipa particije"

#: ../../diskdrake.pm_.c:479
#, fuzzy
msgid "Which filesystem do you want?"
msgstr "Koju  upotrebu  želite ?"

#: ../../diskdrake.pm_.c:482 ../../diskdrake.pm_.c:740
msgid "You can't use ReiserFS for partitions smaller than 32MB"
msgstr "Ne možete koristiti ReiserFS za particije manje od 32MB"

#: ../../diskdrake.pm_.c:498
#, c-format
msgid "Where do you want to mount loopback file %s?"
msgstr "Gde biste da montirate loopback fajl  %s?"

#: ../../diskdrake.pm_.c:499
#, c-format
msgid "Where do you want to mount device %s?"
msgstr "Gde biste da montirate %s uređaj ?"

#: ../../diskdrake.pm_.c:504
msgid ""
"Can't unset mount point as this partition is used for loop back.\n"
"Remove the loopback first"
msgstr ""
"Demontiranje nije moguće,jer se particija korisiti za loop back.\n"
"Prvo uklonite loopback"

#: ../../diskdrake.pm_.c:523
#, c-format
msgid "After formatting partition %s, all data on this partition will be lost"
msgstr ""
"Posle formatiranja particije %s,svi podaci na ovoj particiji će biti "
"izbrisani"

#: ../../diskdrake.pm_.c:525
msgid "Formatting"
msgstr "Formatiranje"

#: ../../diskdrake.pm_.c:526
#, c-format
msgid "Formatting loopback file %s"
msgstr "Formatiranje loopback fajla %s"

#: ../../diskdrake.pm_.c:527 ../../install_steps_interactive.pm_.c:402
#, c-format
msgid "Formatting partition %s"
msgstr "Formatiranje particije %s"

#: ../../diskdrake.pm_.c:532
msgid "After formatting all partitions,"
msgstr "Posle formatiranja svih particija,"

#: ../../diskdrake.pm_.c:532
msgid "all data on these partitions will be lost"
msgstr "svi podaci na njima će biti uništeni"

#: ../../diskdrake.pm_.c:538
msgid "Move"
msgstr "Premesti"

#: ../../diskdrake.pm_.c:539
msgid "Which disk do you want to move it to?"
msgstr "Koji disk želite da premestite?"

#: ../../diskdrake.pm_.c:540
msgid "Sector"
msgstr "Sektor"

#: ../../diskdrake.pm_.c:541
msgid "Which sector do you want to move it to?"
msgstr "Gde želite da instalirate starter?"

#: ../../diskdrake.pm_.c:544
msgid "Moving"
msgstr "Premeštanje"

#: ../../diskdrake.pm_.c:544
msgid "Moving partition..."
msgstr "Premeštanje particije..."

#: ../../diskdrake.pm_.c:554
#, c-format
msgid "Partition table of drive %s is going to be written to disk!"
msgstr "Tabela particija za uređaj %s će biti zapisana na disk!"

#: ../../diskdrake.pm_.c:556
msgid "You'll need to reboot before the modification can take place"
msgstr "Morate restartovati računar da bi se izmene izvršile"

#: ../../diskdrake.pm_.c:577
msgid "Computing FAT filesystem bounds"
msgstr "Proračunavam granice FAT fajl-sistema"

#: ../../diskdrake.pm_.c:577 ../../diskdrake.pm_.c:637
#: ../../install_interactive.pm_.c:107
msgid "Resizing"
msgstr "Promena veličine (resizing)"

#: ../../diskdrake.pm_.c:600
#, fuzzy
msgid "This partition is not resizeable"
msgstr "Kojoj particiji  želite da promenite veličinu?"

#: ../../diskdrake.pm_.c:605
msgid "All data on this partition should be backed-up"
msgstr "Cvi podaci na ovoj particiji bi trebali biti sačuvani"

#: ../../diskdrake.pm_.c:607
#, c-format
msgid "After resizing partition %s, all data on this partition will be lost"
msgstr "Posle promene veličine %s particije svi podaci  će biti izbrisani"

#: ../../diskdrake.pm_.c:617
msgid "Choose the new size"
msgstr "Izaberite novu veličinu"

#: ../../diskdrake.pm_.c:617 ../../install_steps_graphical.pm_.c:287
#: ../../install_steps_graphical.pm_.c:334
#: ../../install_steps_interactive.pm_.c:518
#: ../../partition_table_raw.pm_.c:101
msgid "MB"
msgstr "MB"

#: ../../diskdrake.pm_.c:674
msgid "Create a new partition"
msgstr "Kreiraj novu particiju"

#: ../../diskdrake.pm_.c:700
msgid "Start sector: "
msgstr "Početni sektor: "

#: ../../diskdrake.pm_.c:704 ../../diskdrake.pm_.c:779
msgid "Size in MB: "
msgstr "Veličina u MB:"

#: ../../diskdrake.pm_.c:707 ../../diskdrake.pm_.c:782
msgid "Filesystem type: "
msgstr "Vrsta fajl-sistema:"

#: ../../diskdrake.pm_.c:710
msgid "Preference: "
msgstr "Karakteristike: "

#: ../../diskdrake.pm_.c:758
msgid "This partition can't be used for loopback"
msgstr "Ova particija ne može biti korišćena za loopback "

#: ../../diskdrake.pm_.c:768
msgid "Loopback"
msgstr "Loopback"

#: ../../diskdrake.pm_.c:778
msgid "Loopback file name: "
msgstr "Ime Loopback fajla: "

#: ../../diskdrake.pm_.c:804
msgid "File already used by another loopback, choose another one"
msgstr "Fajl se već koristi od strane drugog loopback-a,izaberite drugi"

#: ../../diskdrake.pm_.c:805
msgid "File already exists. Use it?"
msgstr "Fajl već postoji.Da li da ga koristim ?"

#: ../../diskdrake.pm_.c:827 ../../diskdrake.pm_.c:843
msgid "Select file"
msgstr "Izaberite fajl"

#: ../../diskdrake.pm_.c:836
msgid ""
"The backup partition table has not the same size\n"
"Still continue?"
msgstr ""
"Pohranjena(snimljena) tabela particija nije iste veličine\n"
"Želite da nastavite ?"

#: ../../diskdrake.pm_.c:844
msgid "Warning"
msgstr "Upozorenje"

#: ../../diskdrake.pm_.c:845
msgid ""
"Insert a floppy in drive\n"
"All data on this floppy will be lost"
msgstr ""
"Ubacite disketu u uređaj\n"
"Svi podaci na disketi će biti izbrisani !"

#: ../../diskdrake.pm_.c:856
msgid "Trying to rescue partition table"
msgstr "Spasavanje tabele particija"

#: ../../diskdrake.pm_.c:867
msgid "device"
msgstr "uređaj"

#: ../../diskdrake.pm_.c:868
msgid "level"
msgstr "nivo"

#: ../../diskdrake.pm_.c:869
msgid "chunk size"
msgstr "chunk veličina"

#: ../../diskdrake.pm_.c:881
msgid "Choose an existing RAID to add to"
msgstr "Izaberi postojeći RAID za dodavanje"

#: ../../diskdrake.pm_.c:882
msgid "new"
msgstr "novi"

#: ../../fs.pm_.c:88 ../../fs.pm_.c:95 ../../fs.pm_.c:101 ../../fs.pm_.c:107
#, c-format
msgid "%s formatting of %s failed"
msgstr "%s Formatiranje  %s nije uspelo"

#: ../../fs.pm_.c:133
#, c-format
msgid "I don't know how to format %s in type %s"
msgstr "ne znam kako da formatiram %s u tipu %s"

#: ../../fs.pm_.c:218
msgid "mount failed: "
msgstr "montiranje nije uspelo"

#: ../../fs.pm_.c:230
#, c-format
msgid "error unmounting %s: %s"
msgstr "Greška pri demontiranju %s: %s"

#: ../../fsedit.pm_.c:235
msgid "Mount points must begin with a leading /"
msgstr "Tačke montiranja moraju da počinju sa vodećim /"

#: ../../fsedit.pm_.c:238
#, c-format
msgid "There is already a partition with mount point %s\n"
msgstr "Već postoji particija sa tačkom montiranja %s\n"

#: ../../fsedit.pm_.c:246
#, c-format
msgid "Circular mounts %s\n"
msgstr "Kružno montiranje  %s\n"

#: ../../fsedit.pm_.c:258
msgid "This directory should remain within the root filesystem"
msgstr "Ovaj direktorijum treba da ostane u root fajl sistemu"

#: ../../fsedit.pm_.c:259
msgid "You need a true filesystem (ext2, reiserfs) for this mount point\n"
msgstr ""
"Potreban vam je pravi fajl sistem (ext2, reiserfs) za ovu tačku montiranja\n"

#: ../../fsedit.pm_.c:335
#, c-format
msgid "Error opening %s for writing: %s"
msgstr "Greška pri otvaranju %s za ispis: %s"

#: ../../fsedit.pm_.c:417
msgid ""
"An error has occurred - no valid devices were found on which to create new "
"filesystems. Please check your hardware for the cause of this problem"
msgstr ""
"Dogodila se greška - nije nađen ispravan uređaj na kojem bi bili krerani "
"novi fajl-sistemi. Proverite vaš hardver da vidite šta je uzrok ovog "
"problema."

#: ../../fsedit.pm_.c:431
msgid "You don't have any partitions!"
msgstr "Nemate nijednu particiju!"

#: ../../help.pm_.c:9
#, fuzzy
msgid ""
"Please choose your preferred language for installation and system usage."
msgstr "Izaberite odgovarajući jezik za instaliranje i korišćenje sistema."

#: ../../help.pm_.c:12
msgid ""
"You need to accept the terms of the above license to continue installation.\n"
"\n"
"\n"
"Please click on \"Accept\" if you agree with its terms.\n"
"\n"
"\n"
"Please click on \"Refuse\" if you disagree with its terms. Installation will "
"end without modifying your current\n"
"configuration."
msgstr ""

#: ../../help.pm_.c:22
msgid "Choose the layout corresponding to your keyboard from the list above"
msgstr "Izaberite tip komunikacije sa tastaturom od gore navedenih"

#: ../../help.pm_.c:25
msgid ""
"If you wish other languages (than the one you choose at\n"
"beginning of installation) will be available after installation, please "
"chose\n"
"them in list above. If you want select all, you just need to select \"All\"."
msgstr ""

#: ../../help.pm_.c:30
msgid ""
"Please choose \"Install\" if there are no previous version of "
"Linux-Mandrake\n"
"installed or if you wish to use several operating systems.\n"
"\n"
"\n"
"Please choose \"Update\" if you wish to update an already installed version "
"of Linux-Mandrake.\n"
"\n"
"\n"
"Depend of your knowledge in GNU/Linux, you can choose one of the following "
"levels to install or update your\n"
"Linux-Mandrake operating system:\n"
"\n"
"\t* Recommanded: if you have never installed a GNU/Linux operating system "
"choose this. Installation will be\n"
"\t  be very easy and you will be asked only on few questions.\n"
"\n"
"\n"
"\t* Customized: if you are familiar enough with GNU/Linux, you may choose "
"the primary usage (workstation, server,\n"
"\t  development) of your sytem. You will need to answer to more questions "
"than in \"Recommanded\" installation\n"
"\t  class, so you need to know how GNU/Linux works to choose this "
"installation class.\n"
"\n"
"\n"
"\t* Expert: if you have a good knowledge in GNU/Linux, you can choose this "
"installation class. As in \"Customized\"\n"
"\t  installation class, you will be able to choose the primary usage "
"(workstation, server, development). Be very\n"
"\t  careful before choose this installation class. You will be able to "
"perform a higly customized installation.\n"
"\t  Answer to some questions can be very difficult if you haven't a good "
"knowledge in GNU/Linux. So, don't choose\n"
"\t  this installation class unless you know what you are doing."
msgstr ""

#: ../../help.pm_.c:56
msgid ""
"Select:\n"
"\n"
"  - Customized: If you are familiar enough with GNU/Linux, you may then "
"choose\n"
"    the primary usage for your machine. See below for details.\n"
"\n"
"\n"
"  - Expert: This supposes that you are fluent with GNU/Linux and want to\n"
"    perform a highly customized installation. As for a \"Customized\"\n"
"    installation class, you will be able to select the usage for your "
"system.\n"
"    But please, please, DO NOT CHOOSE THIS UNLESS YOU KNOW WHAT YOU ARE "
"DOING!"
msgstr ""
"Izaberite:\n"
"\n"
" - Sa podešavanjima (Customized): Ukoliko ste upoznati sa Linux-om moći "
"ćete\n"
"da izaberete normal,development ili server mod instalacije.\n"
"Izaberite \"Normal\" instalaciju pri uobičajenom korišćenju računara\n"
"Možete izabrati \"Development\" instalaciju ukoliko ćete se prvenstveno\n"
"razvojem softvera, ili \"Server\" ukoliko želite da postavite standardnu\n"
"server mašinu (za poštu, štampanje...)\n"
"\n"
"\n"
" - Ekspert: Ukoliko ste dobro poznajte GNU/Linux i želite izuzetno\n"
"podesivu instalaciju onda je ovo pravi mod za vas. Moći ćete izabrati\n"
"korišćenje sistema kao \"Preporučeno\"."

#: ../../help.pm_.c:68
#, fuzzy
msgid ""
"You must now define your machine usage. Choices are:\n"
"\n"
"\t* Workstation: this the ideal choice if you intend to use your machine "
"primarily for everyday use, at office or\n"
"\t  at home.\n"
"\n"
"\n"
"\t* Development: if you intend to use your machine primarily for software "
"development, it is the good choice. You\n"
"\t  will then have a complete collection of software installed in order to "
"compile, debug and format source code,\n"
"\t  or create software packages.\n"
"\n"
"\n"
"\t* Server: if you intend to use this machine as a server, it is the good "
"choice. Either a file server (NFS or\n"
"\t  SMB), a print server (Unix style or Microsoft Windows style), an "
"authentication server (NIS), a database\n"
"\t  server and so on. As such, do not expect any gimmicks (KDE, GNOME, etc.) "
"to be installed."
msgstr ""
"Različit izbor za upotrebu vaše mašine može usloviti izbor\n"
"ili  \"Custom\" ili  \"Expert\" mod kao instalacione klase i to \n"
"kao sledeće:\n"
"\n"
"  - Normalna : izaberite ovo ukoliko nameravate da koristite vaše mašinu "
"uglavnom za\n"
"    svakodnevnu upotrebu  (obrada teksta,tablice, grafika itd). Nemojte "
"očekivati\n"
"    bilo koje kompajlere ili razvojna okruženja da budu instalirani .\n"
"\n"
"  - Razvojna: samo joj  ime kaže. Izaberite ovo ukoliko imate nameru da vašu "
"mašinu n    uglavnom koristite za razvoj softvera. Tada će te imat  "
"kompletnu\n"
"    kolekciju softvera  za kompajliranje, debagiranje i formatiranje\n"
"    izvornog koda, ili za kreiranje softverskoih paketa.\n"
"\n"
"  - Server: izaberite ovo ukoliko imate nameru da Linux-Mandrake\n"
"    koristite kaom server. Ili kao fajl server (NFS ili  SMB),\n"
"     ili server protokol za štampu(Unix' lp (Line Printer ili  Windows  SMB\n"
"    štampanje) ili  autentični server (NIS), ili kao server za bazu  "
"podatakaserver itd. Kao \n"
"    takav, on neće imati instaliran luksuz  (KDE, GNOME...) .\n"

#: ../../help.pm_.c:84
#, fuzzy
msgid ""
"DrakX will attempt to look for PCI SCSI adapter(s). If DrakX\n"
"finds an SCSI adapter and knows which driver to use, it will be "
"automatically\n"
"installed.\n"
"\n"
"\n"
"If you have no SCSI adapter, an ISA SCSI adapter or a PCI SCSI adapter that\n"
"DrakX doesn't recognize, you will be asked if a SCSI adapter is present in "
"your\n"
"system. If there is no adapter present, you can click on \"No\". If you "
"click on\n"
"\"Yes\", a list of drivers will be presented from which you can select your\n"
"specific adapter.\n"
"\n"
"\n"
"If you have to manually specify your adapter, DrakX will ask if you want to\n"
"specify options for it. You should allow DrakX to probe the hardware for "
"the\n"
"options. This usually works well.\n"
"\n"
"\n"
"If not, you will need to provide options to the driver. Please review the "
"User\n"
"Guide (chapter 3, section \"Collective informations on your hardware) for "
"hints\n"
"on retrieving this information from hardware documentation, from the\n"
"manufacturer's Web site (if you have Internet access) or from Microsoft "
"Windows\n"
"(if you have it on your system)."
msgstr ""
"DrakX će potražiti  PCI SCSI adapter(e). \n"
"Ukoliko DrakX pronađe SCSI adapter(e) i bude znao koji upravljački program "
"(drajver) koristi\n"
"on  će ga(ih) automatski instalirati.\n"
"\n"
"Ukoliko nemate SCSI adapter, ili imate ISA SCSI adapter, ili  a\n"
"PCI SCSI adapter koji DrakX ne može da prepozna on će vas pitati\n"
"da li imate SCSI adapter u  mašini. Ukoliko nemate adapter\n"
"samo kliknite na  'Ne'. Ukoliko kliknete na  'Da' pojaviće se lista "
"drajvera\n"
"iz koje možete odabrati odgovarajući za vaš adapter.\n"
"\n"
"\n"
"Ukoliko morate ručno da specificirate vaš adapter, DrakX će\n"
"vas upitati da odredite opcije za njega.  Treba li bi da dozvolite DrakX-u "
"da\n"
"ispita adapter radi tih opcija. Ovo obično i uspe.\n"
"\n"
"Ukoliko ne, moraćete da sami odredite opcije za drajver.\n"
"Pogledajte i Instalacioni vodič za dodatna objašnjenja ili\n"
"iskorisitite svoju Windows instalaciju (ukoliko je imate na sistemu),\n"
"dokumenatciju o hardveru, ili sa proizvođačevog \n"
"veb sajta (ukoliko imate pristup internetu)."

#: ../../help.pm_.c:108
msgid ""
"At this point, you need to choose where to install your\n"
"Linux-Mandrake operating system on your hard drive. If it is empty or if an\n"
"existing operating system uses all the space available on it, you need to\n"
"partition it. Basically, partitioning a hard drive consists of logically\n"
"dividing it to create space to install your new Linux-Mandrake system.\n"
"\n"
"\n"
"Because the effects of the partitioning process are usually irreversible,\n"
"partitioning can be intimidating and stressful if you are an inexperienced "
"user.\n"
"This wizard simplifies this process. Before beginning, please consult the "
"manual\n"
"and take your time.\n"
"\n"
"\n"
"You need at least two partitions. One is for the operating system itself and "
"the\n"
"other is for the virtual memory (also called Swap).\n"
"\n"
"\n"
"If partitions have been already defined (from a previous installation or "
"from\n"
"another partitioning tool), you just need choose those to use to install "
"your\n"
"Linux system.\n"
"\n"
"\n"
"If partitions haven't been already defined, you need to create them. \n"
"To do that, use the wizard available above. Depending of your hard drive\n"
"configuration, several solutions can be available:\n"
"\n"
"\t* Use existing partition: the wizard has detected one or more existing "
"Linux partitions on your hard drive. If\n"
"\t  you want to keep them, choose this option. \n"
"\n"
"\n"
"\t* Erase entire disk: if you want delete all data and all partitions "
"present on your hard drive and replace them by\n"
"\t  your new Linux-Mandrake system, you can choose this option. Be careful "
"with this solution, you will not be\n"
"\t  able to revert your choice after confirmation.\n"
"\n"
"\n"
"\t* Use the free space on the Windows partition: if Microsoft Windows is "
"installed on your hard drive and takes\n"
"\t  all space available on it, you have to create free space for Linux data. "
"To do that you can delete your\n"
"\t  Microsoft Windows partition and data (see \"Erase entire disk\" or "
"\"Expert mode\" solutions) or resize your\n"
"\t  Microsoft Windows partition. Resizing can be performed without loss of "
"any data. This solution is\n"
"\t  recommended if you want use both Linux-Mandrake and Microsoft Windows on "
"same computer.\n"
"\n"
"\n"
"\t  Before choosing this solution, please understand that the size of your "
"Microsoft\n"
"\t  Windows partition will be smaller than at present time. It means that "
"you will have less free space under\n"
"\t  Microsoft Windows to store your data or install new software.\n"
"\n"
"\n"
"\t* Expert mode: if you want to partition manually your hard drive, you can "
"choose this option. Be careful before\n"
"\t  choosing this solution. It is powerful but it is very dangerous. You can "
"lose all your data very easily. So,\n"
"\t  don't choose this solution unless you know what you are doing."
msgstr ""

#: ../../help.pm_.c:160
msgid ""
"At this point, you need to choose what\n"
"partition(s) to use to install your new Linux-Mandrake system. If "
"partitions\n"
"have been already defined (from a previous installation of GNU/Linux or "
"from\n"
"another partitioning tool), you can use existing partitions. In other "
"cases,\n"
"hard drive partitions must be defined.\n"
"\n"
"\n"
"To create partitions, you must first select a hard drive. You can select "
"the\n"
"disk for partitioning by clicking on \"hda\" for the first IDE drive, "
"\"hdb\" for\n"
"the second or \"sda\" for the first SCSI drive and so on.\n"
"\n"
"\n"
"To partition the selected hard drive, you can use these options:\n"
"\n"
"   * Clear all: this option deletes all partitions available on the selected "
"hard drive.\n"
"\n"
"\n"
"   * Auto allocate:: this option allows you to automatically create Ext2 and "
"swap partitions in free space of your\n"
"     hard drive.\n"
"\n"
"\n"
"   * Rescue partition table: if your partition table is damaged, you can try "
"to recover it using this option. Please\n"
"     be careful and remember that it can fail.\n"
"\n"
"\n"
"   * Undo: you can use this option to cancel your changes.\n"
"\n"
"\n"
"   * Reload: you can use this option if you wish to undo all changes and "
"load your initial partitions table\n"
"\n"
"\n"
"   * Wizard: If you wish to use a wizard to partition your hard drive, you "
"can use this option. It is recommended if\n"
"     you do not have a good knowledge in partitioning.\n"
"\n"
"\n"
"   * Restore from floppy: if you have saved your partition table on a floppy "
"during a previous installation, you can\n"
"     recover it using this option.\n"
"\n"
"\n"
"   * Save on floppy: if you wish to save your partition table on a floppy to "
"be able to recover it, you can use this\n"
"     option. It is strongly recommended to use this option\n"
"\n"
"\n"
"   * Done: when you have finished partitioning your hard drive, use this "
"option to save your changes.\n"
"\n"
"\n"
"For information, you can reach any option using the keyboard: navigate "
"trough the partitions using Tab and Up/Down arrows.\n"
"\n"
"\n"
"When a partition is selected, you can use:\n"
"\n"
"           * Ctrl-c to create a new partition (when a empty partition is "
"selected)\n"
"\n"
"           * Ctrl-d to delete a partition\n"
"\n"
"           * Ctrl-m to set the mount point"
msgstr ""

#: ../../help.pm_.c:218
msgid ""
"Above are listed the existing Linux partitions detected on\n"
"your hard drive. You can keep choices make by the wizard, they are good for "
"a\n"
"common usage. If you change these choices, you must at least define a root\n"
"partition (\"/\"). Don't choose a too little partition or you will not be "
"able\n"
"to install enough software. If you want store your data on a separate "
"partition,\n"
"you need also to choose a \"/home\" (only possible if you have more than "
"one\n"
"Linux partition available).\n"
"\n"
"\n"
"For information, each partition is listed as follows: \"Name\", "
"\"Capacity\".\n"
"\n"
"\n"
"\"Name\" is coded as follow: \"hard drive type\", \"hard drive number\",\n"
"\"partition number\" (for example, \"hda1\").\n"
"\n"
"\n"
"\"Hard drive type\" is \"hd\" if your hard drive is an IDE hard drive and "
"\"sd\"\n"
"if it is an SCSI hard drive.\n"
"\n"
"\n"
"\"Hard drive number\" is always a letter after \"hd\" or \"sd\". With IDE "
"hard drives:\n"
"\n"
"   * \"a\" means \"master hard drive on the primary IDE controller\",\n"
"\n"
"   * \"b\" means \"slave hard drive on the primary IDE controller\",\n"
"\n"
"   * \"c\" means \"master hard drive on the secondary IDE controller\",\n"
"\n"
"   * \"d\" means \"slave hard drive on the secondary IDE controller\".\n"
"\n"
"\n"
"With SCSI hard drives, a \"a\" means \"primary hard drive\", a \"b\" means "
"\"secondary hard drive\", etc..."
msgstr ""

#: ../../help.pm_.c:252
msgid ""
"Choose the hard drive you want to erase to install your\n"
"new Linux-Mandrake partition. Be careful, all data present on it will be "
"lost\n"
"and will not be recoverable."
msgstr ""

#: ../../help.pm_.c:257
msgid ""
"Click on \"OK\" if you want to delete all data and\n"
"partitions present on this hard drive. Be careful, after clicking on \"OK\", "
"you\n"
"will not be able to recover any data and partitions present on this hard "
"drive,\n"
"including any Windows data.\n"
"\n"
"\n"
"Click on \"Cancel\" to cancel this operation without losing any data and\n"
"partitions present on this hard drive."
msgstr ""

#: ../../help.pm_.c:267
msgid ""
"More than one Microsoft Windows partition have been\n"
"detected on your hard drive. Please choose the one you want resize to "
"install\n"
"your new Linux-Mandrake operating system.\n"
"\n"
"\n"
"For information, each partition is listed as follow; \"Linux name\", "
"\"Windows\n"
"name\" \"Capacity\".\n"
"\n"
"\"Linux name\" is coded as follow: \"hard drive type\", \"hard drive "
"number\",\n"
"\"partition number\" (for example, \"hda1\").\n"
"\n"
"\n"
"\"Hard drive type\" is \"hd\" if your hard dive is an IDE hard drive and "
"\"sd\"\n"
"if it is an SCSI hard drive.\n"
"\n"
"\n"
"\"Hard drive number\" is always a letter putted after \"hd\" or \"sd\". With "
"IDE hard drives:\n"
"\n"
"   * \"a\" means \"master hard drive on the primary IDE controller\",\n"
"\n"
"   * \"b\" means \"slave hard drive on the primary IDE controller\",\n"
"\n"
"   * \"c\" means \"master hard drive on the secondary IDE controller\",\n"
"\n"
"   * \"d\" means \"slave hard drive on the secondary IDE controller\".\n"
"\n"
"With SCSI hard drives, a \"a\" means \"primary hard drive\", a \"b\" means "
"\"secondary hard drive\", etc.\n"
"\n"
"\n"
"\"Windows name\" is the letter of your hard drive under Windows (the first "
"disk\n"
"or partition is called \"C:\")."
msgstr ""

#: ../../help.pm_.c:300
msgid "Please be patient. This operation can take several minutes."
msgstr ""

#: ../../help.pm_.c:303
msgid ""
"Any partitions that have been newly defined must be\n"
"formatted for use (formatting meaning creating a filesystem).\n"
"\n"
"\n"
"At this time, you may wish to reformat some already existing partitions to "
"erase\n"
"the data they contain. If you wish do that, please also select the "
"partitions\n"
"you want to format.\n"
"\n"
"\n"
"Please note that it is not necessary to reformat all pre-existing "
"partitions.\n"
"You must reformat the partitions containing the operating system (such as "
"\"/\",\n"
"\"/usr\" or \"/var\") but do you no have to reformat partitions containing "
"data\n"
"that you wish to keep (typically /home).\n"
"\n"
"\n"
"Please be careful selecting partitions, after formatting, all data will be\n"
"deleted and you will not be able to recover any of them.\n"
"\n"
"\n"
"Click on \"OK\" when you are ready to format partitions.\n"
"\n"
"\n"
"Click on \"Cancel\" if you want to choose other partitions to install your "
"new\n"
"Linux-Mandrake operating system."
msgstr ""

#: ../../help.pm_.c:329
#, fuzzy
msgid ""
"You may now select the group of packages you wish to\n"
"install or upgrade.\n"
"\n"
"\n"
"DrakX will then check whether you have enough room to install them all. If "
"not,\n"
"it will warn you about it. If you want to go on anyway, it will proceed onto "
"the\n"
"installation of all selected groups but will drop some packages of lesser\n"
"interest. At the bottom of the list you can select the option \n"
"\"Individual package selection\"; in this case you will have to browse "
"through\n"
"more than 1000 packages..."
msgstr ""
"Sada možete izabrati grupu paketa koje želite\n"
"da instalirate. ili unapredite.\n"
"\n"
"DrakX će zatim proveriti da li imate mesta za njihovo instaliranje.Ukoliko "
"nema,\n"
"on će vas upozoriti na to. Ukoliko želite da nastavite, nastaviće se "
"instalacija\n"
"svih odabranih grupa ali će neki paketi od manjeg značaja biti "
"izostavljeni.Na kraju liste\n"
"možete izabrati opcijy \"Individual package selection\";\n"
"U tom slučaju moraćete birati između više od 1000 paketa..."

#: ../../help.pm_.c:341
msgid ""
"You can now choose individually all the packages you\n"
"wish to install.\n"
"\n"
"\n"
"You can expand or collapse the tree by clicking on options in the left "
"corner of\n"
"the packages window.\n"
"\n"
"\n"
"If you prefer to see packages sorted in alphabetic order, click on the icon\n"
"\"Toggle flat and group sorted\".\n"
"\n"
"\n"
"If you want not to be warned on dependencies, click on \"Automatic\n"
"dependencies\". If you do this, note that unselecting one package may "
"silently\n"
"unselect several other packages which depend on it."
msgstr ""

#: ../../help.pm_.c:358
#, fuzzy
msgid ""
"If you have all the CDs in the list above, click Ok. If you have\n"
"none of those CDs, click Cancel. If only some CDs are missing, unselect "
"them,\n"
"then click Ok."
msgstr ""
"Ukoliko imate sve gore navedene CD-ove, kliknite na Ok.\n"
"Ukoliko nemate nijedan CD, kliknite na Cancel.\n"
"Ako vam nedostaju  neki CD-ovi, deselektujete ih , a onda kliknite na  Ok."

#: ../../help.pm_.c:363
msgid ""
"Your new Linux-Mandrake operating system is currently being\n"
"installed. This operation should take a few minutes (it depends on size you\n"
"choose to install and the speed of your computer).\n"
"\n"
"\n"
"Please be patient."
msgstr ""

#: ../../help.pm_.c:371
msgid ""
"You can now test your mouse. Use buttons and wheel to verify\n"
"if settings are good. If not, you can click on \"Cancel\" to choose another\n"
"driver."
msgstr ""

#: ../../help.pm_.c:376
#, fuzzy
msgid ""
"Please select the correct port. For example, the COM1\n"
"port under MS Windows is named ttyS0 under GNU/Linux."
msgstr ""
"Molim, izaberite odgovarajući port. Na primer, COM1 port pod  MS Windows-om\n"
"u Linux-u ima oznaku ttyS0"

#: ../../help.pm_.c:380
msgid ""
"If you wish to connect your computer to the Internet or\n"
"to a local network please choose the correct option. Please turn on your "
"device\n"
"before choosing the correct option to let DrakX detect it automatically.\n"
"\n"
"\n"
"If you do not have any connection to the Internet or a local network, "
"choose\n"
"\"Disable networking\".\n"
"\n"
"\n"
"If you wish to configure the network later after installation or if you "
"have\n"
"finished to configure your network connection, choose \"Done\"."
msgstr ""

#: ../../help.pm_.c:393
msgid ""
"No modem has been detected. Please select the serial port on which it is "
"plugged.\n"
"\n"
"\n"
"For information, the first serial port (called \"COM1\" under Microsoft\n"
"Windows) is called \"ttyS0\" under Linux."
msgstr ""

#: ../../help.pm_.c:400
msgid ""
"You may now enter dialup options. If you don't know\n"
"or are not sure what to enter, the correct informations can be obtained "
"from\n"
"your Internet Service Provider. If you do not enter the DNS (name server)\n"
"information here, this information will be obtained from your Internet "
"Service\n"
"Provider at connection time."
msgstr ""

#: ../../help.pm_.c:407
msgid ""
"If your modem is an external modem, please turn on it now to let DrakX "
"detect it automatically."
msgstr ""

#: ../../help.pm_.c:410
msgid "Please turn on your modem and choose the correct one."
msgstr ""

#: ../../help.pm_.c:413
msgid ""
"If you are not sure if informations above are\n"
"correct or if you don't know or are not sure what to enter, the correct\n"
"informations can be obtained from your Internet Service Provider. If you do "
"not\n"
"enter the DNS (name server) information here, this information will be "
"obtained\n"
"from your Internet Service Provider at connection time."
msgstr ""

#: ../../help.pm_.c:420
#, fuzzy
msgid ""
"You may now enter your host name if needed. If you\n"
"don't know or are not sure what to enter, the correct informations can be\n"
"obtained from your Internet Service Provider."
msgstr ""
"Sada unosite dialup opcije. Ukoliko niste sigurni šta da unesete,\n"
"ispravne informacije ćete pronaći kod vašeg ISP."

#: ../../help.pm_.c:425
#, fuzzy
msgid ""
"You may now configure your network device.\n"
"\n"
"   * IP address: if you don't know or are not sure what to enter, ask your "
"network administrator.\n"
"     You should not enter an IP address if you select the option \"Automatic "
"IP\" below.\n"
"\n"
"   * Netmask: \"255.255.255.0\" is generally a good choice. If you don't "
"know or are not sure what to enter,\n"
"     ask your network administrator.\n"
"\n"
"   * Automatic IP: if your network uses BOOTP or DHCP protocol, select this "
"option. If selected, no value is needed in\n"
"    \"IP address\". If you don't know or are not sure if you need to select "
"this option, ask your network administrator."
msgstr ""
"Unesi:\n"
"\n"
" - IP adresa: ukoliko je ne znate, kontaktirajte mrežnog administratora ili "
"ISP.\n"
"\n"
"\n"
" - Mrežna maska: \"255.255.255.0\" je većinom dobar izbor. Ukoliko niste\n"
"sigurni, kontaktirajte mrežnog administratora ili ISP.\n"
"\n"
"\n"
" - Automatski IP: ukoliko vaša mreža koristi bootp ili dhcp protokole,\n"
"izaberite ovu opciju. Ukoliko je selektovana, nije potrebna vrednost u\n"
"\"IP adresa\". Ukoliko niste sigurni, kontaktirajte mrežog administratora "
"ili ISP. \n"

#: ../../help.pm_.c:437
#, fuzzy
msgid ""
"You may now enter your host name if needed. If you\n"
"don't know or are not sure what to enter, ask your network administrator."
msgstr ""
"Ukoliko vaš računar koristi NIS, izaberite \"Koristi NIS\". Ukoliko niste\n"
"sigurni kontaktirajte vašeg administratora."

#: ../../help.pm_.c:441
msgid ""
"You may now enter your host name if needed. If you\n"
"don't know or are not sure what to enter, leave blank."
msgstr ""

#: ../../help.pm_.c:445
msgid ""
"You may now enter dialup options. If you're not sure what to enter, the\n"
"correct information can be obtained from your ISP."
msgstr ""
"Sada unosite dialup opcije. Ukoliko niste sigurni šta da unesete,\n"
"ispravne informacije ćete pronaći kod vašeg ISP."

#: ../../help.pm_.c:449
msgid ""
"If you will use proxies, please configure them now. If you don't know if\n"
"you should use proxies, ask your network administrator or your ISP."
msgstr ""
"Ukoliko koristite proksije, konfigurišite ih sada. Ukoliko ne znate\n"
"da li ćete ih koristiti, konsultujte mrežog administratora ili ISP."

#: ../../help.pm_.c:453
#, fuzzy
msgid ""
"You can install cryptographic package if your internet connection has been\n"
"set up correctly. First choose a mirror where you wish to download packages "
"and\n"
"after that select the packages to install.\n"
"\n"
"\n"
"Note you have to select mirror and cryptographic packages according\n"
"to your legislation."
msgstr ""
"Možete instalirati kriptografski paket ukoliko je internet konekcija\n"
"pravilno podešena. Prvo izaberite prostor gde ćete download-ti pakete\n"
"i nakon toga izabrati pakete koje ćete instalirati.\n"
"Morate izabrati mirror i kripto paket vodeći računa o zakonima."

#: ../../help.pm_.c:462
msgid "You can now select your timezone according to where you live."
msgstr ""

#: ../../help.pm_.c:465
#, fuzzy
msgid ""
"GNU/Linux manages time in GMT (Greenwich Manage\n"
"Time) and translates it in local time according to the time zone you have\n"
"selected.\n"
"\n"
"\n"
"If you use Microsoft Windows on this computer, choose \"No\"."
msgstr ""
"Sada možete odabrati vremensku zonu prema mestu u kome živite.\n"
"\n"
"\n"
"Linux meri vreme u GMT ili \"Greeenwich Mean Time\" i prevodi ga u\n"
"lokalno vreme uzimajući u obzir odabranu vremensku zonu."

#: ../../help.pm_.c:473
#, fuzzy
msgid ""
"You may now choose which services you want to start at boot time.\n"
"\n"
"\n"
"When your mouse comes over an item, a small balloon help will popup which\n"
"describes the role of the service.\n"
"\n"
"\n"
"Be very careful in this step if you intend to use your machine as a server: "
"you\n"
"will probably want not to start any services that you don't need. Please\n"
"remember that several services can be dangerous if they are enable on a "
"server.\n"
"In general, select only the services that you really need."
msgstr ""
"Sada možete odabrati koje servise želite da se staraju pri podizanju "
"sistema.\n"
"Kada mišom pređete preko oznake servisa, pojaviće se mali balon za pomoć "
"koji \n"
"opisuje ulogu servisa.\n"
"\n"
"Budite posebno pažljivi u ovom koraku ukoliko nameravate da korisite mašinu "
"kao\n"
"server: verovatno će te želeti da ne startujete bilo koji servis koji \n"
"ne želite."

#: ../../help.pm_.c:486
msgid ""
"You can configure a local printer (connected to your computer) or remote\n"
"printer (accessible via a Unix, Netware or Microsoft Windows network)."
msgstr ""

#: ../../help.pm_.c:490
msgid ""
"If you wish to be able to print, please choose one printing system between\n"
"CUPS and LPR.\n"
"\n"
"\n"
"CUPS is a new, powerful and flexible printing system for Unix systems (CUPS\n"
"means \"Common Unix Printing System\"). It is the default printing system "
"in\n"
"Linux-Mandrake.\n"
"\n"
"\n"
"LPR is the old printing system used in previous Linux-Mandrake "
"distributions.\n"
"\n"
"\n"
"If you don't have printer, click on \"None\"."
msgstr ""

#: ../../help.pm_.c:505
msgid ""
"GNU/Linux can deal with many types of printer. Each of these types requires\n"
"a different setup.\n"
"\n"
"\n"
"If your printer is physically connected to your computer, select \"Local\n"
"printer\".\n"
"\n"
"\n"
"If you want to access a printer located on a remote Unix machine, select\n"
"\"Remote printer\".\n"
"\n"
"\n"
"If you want to access a printer located on a remote Microsoft Windows "
"machine\n"
"(or on Unix machine using SMB protocol), select \"SMB/Windows 95/98/NT\"."
msgstr ""

#: ../../help.pm_.c:521
msgid ""
"Please turn on your printer before continuing to let DrakX detect it.\n"
"\n"
"You have to enter some informations here.\n"
"\n"
"\n"
"   * Name of printer: the print spooler uses \"lp\" as default printer name. "
"So, you must have a printer named \"lp\".\n"
"     If you have only one printer, you can use several names for it. You "
"just need to separate them by a pipe\n"
"     character (a \"|\"). So, if you prefer a more meaningful name, you have "
"to put it first, eg: \"My printer|lp\".\n"
"     The printer having \"lp\" in its name(s) will be the default printer.\n"
"\n"
"\n"
"   * Description: this is optional but can be useful if several printers are "
"connected to your computer or if you allow\n"
"     other computers to access to this printer.\n"
"\n"
"\n"
"   * Location: if you want to put some information on your\n"
"     printer location, put it here (you are free to write what\n"
"     you want, for example \"2nd floor\").\n"
msgstr ""

#: ../../help.pm_.c:542
msgid ""
"You need to enter some informations here.\n"
"\n"
"\n"
"   * Name of queue: the print spooler uses \"lp\" as default printer name. "
"So, you need have a printer named \"lp\".\n"
"    If you have only one printer, you can use several names for it. You just "
"need to separate them by a pipe\n"
"    character (a \"|\"). So, if you prefer to have a more meaningful name, "
"you have to put it first, eg: \"My printer|lp\".\n"
"    The printer having \"lp\" in its name(s) will be the default printer.\n"
"\n"
"  \n"
"   * Spool directory: it is in this directory that printing jobs are stored. "
"Keep the default choice\n"
"     if you don't know what to use\n"
"\n"
"\n"
"   * Printer Connection: If your printer is physically connected to your "
"computer, select \"Local printer\".\n"
"     If you want to access a printer located on a remote Unix machine, "
"select \"Remote lpd printer\".\n"
"\n"
"\n"
"     If you want to access a printer located on a remote Microsoft Windows "
"machine (or on Unix machine using SMB\n"
"     protocol), select \"SMB/Windows 95/98/NT\".\n"
"\n"
"\n"
"     If you want to acces a printer located on NetWare network, select "
"\"NetWare\".\n"
msgstr ""

#: ../../help.pm_.c:567
msgid ""
"Your printer has not been detected. Please enter the name of the device on\n"
"which it is connected.\n"
"\n"
"\n"
"For information, most printers are connected on the first parallel port. "
"This\n"
"one is called \"/dev/lp0\" under GNU/Linux and \"LPT1\" under Microsoft "
"Windows."
msgstr ""

#: ../../help.pm_.c:575
msgid "You must now select your printer in the above list."
msgstr ""

#: ../../help.pm_.c:578
msgid ""
"Please select the right options according to your printer.\n"
"Please see its documentation if you don't know what choose here.\n"
"\n"
"\n"
"You will be able to test your configuration in next step and you will be "
"able to modify it if it doesn't work as you want."
msgstr ""

#: ../../help.pm_.c:585
#, fuzzy
msgid ""
"You can now enter the root password for your Linux-Mandrake system.\n"
"The password must be entered twice to verify that both password entries are "
"identical.\n"
"\n"
"\n"
"Root is the system's administrator and is the only user allowed to modify "
"the\n"
"system configuration. Therefore, choose this password carefully. \n"
"Unauthorized use of the root account can be extemely dangerous to the "
"integrity\n"
"of the system, its data and other system connected to it.\n"
"\n"
"\n"
"The password should be a mixture of alphanumeric characters and at least 8\n"
"characters long. It should never be written down.\n"
"\n"
"\n"
"Do not make the password too long or complicated, though: you must be able "
"to\n"
"remember it without too much effort."
msgstr ""
"Sada, možete uneti  root lozinku za vaš Linux-Mandrake sistem.\n"
"Lozinka mora biti uneta dva puta radi verifikacije da su oba unosa\n"
"lozinki ista.\n"
"\n"
"\n"
"Root je administrator sistema, i jedni korisnik\n"
"koji može da modifikuje sistemske opcije. Zbog toga,\n"
"birajte lozinku pažljivo! Nedozvoljeni pristup na root račun može\n"
"biti veoma opasan za bezbednost sistema i podataka, kao i drugih\n"
"povezanih sistema. Lozinka treba da mešavina alfanumeričkih\n"
"karaktera i najmanje 8 karaktera dugačka.\n"
"*Nikada* je ne zapisujte na papir. Ne pravite lozinku previše dugom\n"
"i komplikovanom, jer je morate upamtiti bez mnogo napora."

#: ../../help.pm_.c:603
msgid ""
"To enable a more secure system, you should select \"Use shadow file\" and\n"
"\"Use MD5 passwords\"."
msgstr ""
"Da bi omogućili veću sigurnost sistema, izaberite \"Koristi shadow fajl\" i\n"
"\"Use MD5 passwords\"."

#: ../../help.pm_.c:607
msgid ""
"If your network uses NIS, select \"Use NIS\". If you don't know, ask your\n"
"network administrator."
msgstr ""
"Ukoliko vaš računar koristi NIS, izaberite \"Koristi NIS\". Ukoliko niste\n"
"sigurni kontaktirajte vašeg administratora."

#: ../../help.pm_.c:611
msgid ""
"You may now create one or more \"regular\" user account(s), as\n"
"opposed to the \"privileged\" user account, root. You can create\n"
"one or more account(s) for each person you want to allow to use\n"
"the computer. Note that each user account will have its own\n"
"preferences (graphical environment, program settings, etc.)\n"
"and its own \"home directory\", in which these preferences are\n"
"stored.\n"
"\n"
"\n"
"First of all, create an account for yourself! Even if you will be the only "
"user\n"
"of the machine, you may NOT connect as root for daily use of the system: "
"it's a\n"
"very high security risk. Making the system unusable is very often a typo "
"away.\n"
"\n"
"\n"
"Therefore, you should connect to the system using the user account\n"
"you will have created here, and login as root only for administration\n"
"and maintenance purposes."
msgstr ""
"Sada možete kreirati jedan ili više običnih \"regular\" korisničkih\n"
"računa, nasuprot privilegovanom \"privileged\" korisničkom računu, root.\n"
"Možete kreirati jedan ili više računa za svaku osobu koja želi koristiti\n"
"računar. Nema limita. Svaki korisnik će imati sopstveno podešene parametre\n"
"(grafičko okruženje, kao i svoj home direktorijum \"Osnovna direktorijum\",\n"
"u kojem se ovi parametri i nalaze.\n"
"\n"
"\n"
"Pre svega, napravite račun za vaš same! Čak i ukoliko ćete biti jedini\n"
"korisnik na računaru, NE treba da se konektujete kao root za svakodnevnu\n"
"upotrebu sistema: to je veoma veliki sigurnosni rizik. Možete sistem\n"
"učiniti nestabilnim ili ga čak onesposobiti što je česta pojava !\n"
"Zbog toga, TREBA da se konektujete koristeći običan korisnik . Račun koji\n"
"ćete kreirati ovde, a root račun koristiti SAMO pri administriranju ili\n"
"održavanju sistema."

#: ../../help.pm_.c:630
msgid ""
"Creating a boot disk is strongly recommended. If you can't\n"
"boot your computer, it's the only way to rescue your system without\n"
"reinstalling it."
msgstr ""

#: ../../help.pm_.c:635
msgid ""
"You need to indicate where you wish\n"
"to place the information required to boot to GNU/Linux.\n"
"\n"
"\n"
"Unless you know exactly what you are doing, choose \"First sector of\n"
"drive (MBR)\"."
msgstr ""
"Morate označiti gde želite da postavite\n"
"podatke potrebne za podizanje Linux-a.\n"
"\n"
"\n"
"Ukoliko neznate tačno šta radite,izaberite \"Prvi sektor\n"
"diska (MBR)\"."

#: ../../help.pm_.c:643
msgid ""
"Unless you know specifically otherwise, the usual choice is \"/dev/hda\"\n"
" (primary master IDE disk) or \"/dev/sda\" (first SCSI disk)."
msgstr ""
"Ukoliko nije drugačije određeno, oubičajen izbor je \"/dev/hda\"\n"
"(master disk na primarnom kanalu) ili \"/dev/sda\" (first SCSI disk)."

#: ../../help.pm_.c:647
msgid ""
"LILO (the LInux LOader) and Grub are bootloaders: they are able to boot\n"
"either GNU/Linux or any other operating system present on your computer.\n"
"Normally, these other operating systems are correctly detected and\n"
"installed. If this is not the case, you can add an entry by hand in this\n"
"screen. Be careful as to choose the correct parameters.\n"
"\n"
"\n"
"You may also want not to give access to these other operating systems to\n"
"anyone, in which case you can delete the corresponding entries. But\n"
"in this case, you will need a boot disk in order to boot them!"
msgstr ""
"LILO (the LInux LOader) i  Grub su starteri: oni omogućavaju da startate \n"
"ili  Linux ili bilo koji  drugi  operativni sistem prisutan na vašem "
"kompjuteru.\n"
"Naravno, ovi drugi operativni sistemi su ispravno detektovani i instalirani. "
"\n"
"Ukoliko to nije tako,možete to sami urediti ovde.Pazite kada unosite\n"
"parametre\n"
"\n"
"\n"
"Takođe,možete želeti da ostalim operat.sistemima onemogućite da pristupe "
"drugi \n"
"U tom slučaju, treba da izbrišete odgovarajuće linije za te sisteme. Ali\n"
"onda morate imati boot diskete da bi ih startali !"

#: ../../help.pm_.c:659
#, fuzzy
msgid ""
"LILO and grub main options are:\n"
"  - Boot device: Sets the name of the device (e.g. a hard disk\n"
"partition) that contains the boot sector. Unless you know specifically\n"
"otherwise, choose \"/dev/hda\".\n"
"\n"
"\n"
"  - Delay before booting default image: Specifies the number in tenths\n"
"of a second the boot loader should wait before booting the first image.\n"
"This is useful on systems that immediately boot from the hard disk after\n"
"enabling the keyboard. The boot loader doesn't wait if \"delay\" is\n"
"omitted or is set to zero.\n"
"\n"
"\n"
"  - Video mode: This specifies the VGA text mode that should be selected\n"
"when booting. The following values are available: \n"
"\n"
"    * normal: select normal 80x25 text mode.\n"
"\n"
"    * <number>:  use the corresponding text mode."
msgstr ""
"LILO/grub glavne opcije su:\n"
"  - Boot uređaj: Podešava ime uređaja (npr. hard disk particije)\n"
"koji sadrži boot sektor. Ukoliko drugačije nije određeno,\n"
"izaberite \"/dev/hda\".\n"
"\n"
"\n"
"  - Pauza pre startanja default image-a: Specificira broj u desetim "
"delovima\n"
"sekunde za koji starter treba da čeka pre startanja prvog image-a.\n"
"Ovo je korisno na sistemima koji odmah startaju sa hard diska posle\n"
"detekcije tastaure. Starter ne čeka ukoliko je  \"delay\" \n"
"prazno ili podešeno na 0 - nula .\n"
"\n"
"\n"
"  - Video mod: Ovaj mod podešava VGA tekst mod koji se bira pri\n"
"startanju. Moguće su sledeće vrednosti: \n"
"    * normal: koristi normalni 80x25 tekst mod.\n"
"    * <number>: koristi korespondentni tekst mod."

#: ../../help.pm_.c:680
msgid ""
"SILO is a bootloader for SPARC: it is able to boot\n"
"either GNU/Linux or any other operating system present on your computer.\n"
"Normally, these other operating systems are correctly detected and\n"
"installed. If this is not the case, you can add an entry by hand in this\n"
"screen. Be careful as to choose the correct parameters.\n"
"\n"
"\n"
"You may also want not to give access to these other operating systems to\n"
"anyone, in which case you can delete the corresponding entries. But\n"
"in this case, you will need a boot disk in order to boot them!"
msgstr ""
"SILO je starter za SPARC: on može da starta\n"
"ili Linux ili bilo koji  drugi  operativni sistem prisutan na vašem "
"kompjuteru.\n"
"Naravno, ovi drugi operat.sistemi su ispravno detektovani i instalirani. \n"
"Ukoliko to nije tako,možete to sami urediti ovde.Pazite kada unosite "
"parametre\n"
"\n"
"\n"
"Takođe,možete želeti da ostalim operat.sistemima onemogućite da pristupe "
"drugi \n"
"U tom slučaju, treba da izbrišete odgovarajuće linije za te sisteme. Ali\n"
"onda morate imati boot diskete da bi ih startali !"

#: ../../help.pm_.c:692
msgid ""
"SILO main options are:\n"
"  - Bootloader installation: Indicate where you want to place the\n"
"information required to boot to GNU/Linux. Unless you know exactly\n"
"what you are doing, choose \"First sector of drive (MBR)\".\n"
"\n"
"\n"
"  - Delay before booting default image: Specifies the number in tenths\n"
"of a second the boot loader should wait before booting the first image.\n"
"This is useful on systems that immediately boot from the hard disk after\n"
"enabling the keyboard. The boot loader doesn't wait if \"delay\" is\n"
"omitted or is set to zero."
msgstr ""
"SILO glavne opcije su:\n"
"  - Instalacija startera: naznačite gde želite da smestite informacije\n"
"potrebne za startanje Linux-a.Ukoliko ne znate tačno šta radite,\n"
"izaberite \"Prvi sektor hard diska (MBR)\".\n"
"\n"
"\n"
"  - Pauza pre startanja default image-a: Specificira broj u desetim "
"delovima\n"
"sekunde za koji starter treba da čeka pre startanja prvog image-a.\n"
"Ovo je korisno na sistemima koji odmah startaju sa hard diska posle\n"
"detekcije tastaure. Starter ne čeka ukoliko je  \"delay\" \n"
"prazno ili podešeno na 0 - nula ."

#: ../../help.pm_.c:705
msgid ""
"Now it's time to configure the X Window System, which is the\n"
"core of the GNU/Linux GUI (Graphical User Interface). For this purpose,\n"
"you must configure your video card and monitor. Most of these\n"
"steps are automated, though, therefore your work may only consist\n"
"of verifying what has been done and accept the settings :)\n"
"\n"
"\n"
"When the configuration is over, X will be started (unless you\n"
"ask DrakX not to) so that you can check and see if the\n"
"settings suit you. If they don't, you can come back and\n"
"change them, as many times as necessary."
msgstr ""
"Sada je došlo vreme da podesimo X Window sistem, koji je\n"
"jezgro Linux GUI-a (Linux Grafičko Korisničko Okruženje). U tu svrhu,\n"
"morate konfigurisati vašu video kartu i monitor. Većinom\n"
"su ovi postupci automatizovani, tako da se vaš posao može\n"
"svesti na potvrđivanje onog što je urađeno i prihvatanje\n"
"podešenih opcija :-)\n"
"\n"
"\n"
"Kada konfiguracija bude završena, X-ovi će se podići (osim ako\n"
"kažete DrakX-u da to ne radi!) tako da možete isprobati da li je\n"
"sve podešeno kako valja. Ako se ne podignu, vratite se korak nazad\n"
"i promenite podešavanje koliko god puta je potrebno."

#: ../../help.pm_.c:718
msgid ""
"If something is wrong in X configuration, use these options to correctly\n"
"configure the X Window System."
msgstr ""
"Ukoliko je nešto pogrešno u X konfiguraciji, koristite ove opcije\n"
"da bi ispravno podeesili X Window sistem."

#: ../../help.pm_.c:722
msgid ""
"If you prefer to use a graphical login, select \"Yes\". Otherwise, select\n"
"\"No\"."
msgstr ""
"Ukoliko više volite logovanje u grafičkom modu, izaberite \"Da\".\n"
"U suprotnom izaberite \"Ne\"."

#: ../../help.pm_.c:726
#, fuzzy
msgid ""
"You can now select some miscellaneous options for your system.\n"
"\n"
"* Use hard drive optimizations: this option can improve hard disk "
"performance but is only for advanced users. Some buggy\n"
"  chipsets can ruin your data, so beware. Note that the kernel has a builtin "
"blacklist of drives and chipsets, but if\n"
"  you want to avoid bad surprises, leave this option unset.\n"
"\n"
"\n"
"* Choose security level: you can choose a security level for your system. "
"Please refer to the manual for complete\n"
"  information. Basically, if you don't know what to choose, keep the default "
"option.\n"
"\n"
"\n"
"* Precise RAM if needed: unfortunately, there is no standard method to ask "
"the BIOS about the amount of RAM present in\n"
"  your computer. As consequence, Linux may fail to detect your amount of RAM "
"correctly. If this is the case, you can\n"
"  specify the correct amount or RAM here. Please note that a difference of 2 "
"or 4 MB between detected memory and memory\n"
"  present in your system is normal.\n"
"\n"
"\n"
"* Removable media automounting: if you would prefer not to manually mount "
"removable media (CD-Rom, floppy, Zip, etc.) by\n"
"  typing \"mount\" and \"umount\", select this option.\n"
"\n"
"\n"
"* Clean \"/tmp\" at each boot: if you want delete all files and directories "
"stored in \"/tmp\" when you boot your system,\n"
"  select this option.\n"
"\n"
"\n"
"* Enable num lock at startup: if you want NumLock key enabled after booting, "
"select this option. Please note that you\n"
"  should not enable this option on laptops and that NumLock may or may not "
"work under X."
msgstr ""
"Ovde možete podesiti neke korisne opcije za vaš sistem.\n"
"\n"
"  - Upotrebi hard disk optimizaciju: Ova opcija ubrzava hard disk,ali je "
"samo za naprednije korisnike : zbog mogućnosti oštećenja\n"
"harda usled bagovitih chipset-ova.Dakle,\n"
"    pazite. Zapamtite da kernel ima crnu listu drajvera i \n"
"    chipset-ova, ali ukoliko ne volite iznenađenja, ostavite ovu opciju  "
"nepodešenu.\n"
"\n"
"  - Biranje sigurnosnog nivoa: Možete birati nivo sigurnosti za vaš\n"
"sistem. Pročitajte upustvo za više informacija.U osnovi: \n"
"    ukoliko ne znate, izaberite \"Medium\" ; ukoliko stvarno želite sigurnu "
"\n"
"    mašinu, izaberite \"Paranoid\" ali pazite: U OVOM NIVOU,NIJE SE MOGUćE \n"
"    LOGOVATI KAO ROOT U KONZOLI ! Ukoliko želite da budete root, morate se "
"logovati  kao korisnik\n"
"    i koristiti  \"su\". Još jednostavnije, ne očekujte da koristite mašinu\n"
"    za bilo šta oisim kao server. Dakle, upozoreni ste.\n"
"\n"
"  - Definiši veličinu RAM-a (ako je potrebno): U nekim slučajevima,\n"
"Linux ne može da tačno odredi sav instalirani RAM na nekim mašinama.\n"
"Ukoliko se ovo desi, specificirajte tačnu vrednost.\n"
"Napomena: razlika u 2 ili 4 Mb je normalna.\n"
"\n"
"  - Automontiranje prenosivih medija: Ukoliko ne volite ručno montiranje\n"
"prenosivih medija (CD-ROM, disketa, Zip) kucanjem \"mount\" i \"umount\"\n"
"izaberite ovu opciju.\n"
"\n"
"  - Omogući Num Lock taster pri startanju: Ako želite da Num Lock bude\n"
"aktiviran pri boot-anju, izaberite ovu opciju (Napomena: Num Lock možda opet "
"neće raditi pod X-ima, ti malera !)."

#: ../../help.pm_.c:755
msgid ""
"Your system is going to reboot.\n"
"\n"
"After rebooting, your new Linux Mandrake system will load automatically.\n"
"If you want to boot into another existing operating system, please read\n"
"the additional instructions."
msgstr ""
"Sistem će se resetovati.\n"
"\n"
"Posle resetovanja, vaš novi Linux-Mandrake sistem će se podići automatski.\n"
"Ukoliko želite da podignete neki drugi instalirani operativni sistem,\n"
"pročitate upustvo ili posetite neki od Linux chat kanala."

#: ../../install2.pm_.c:40
msgid "Choose your language"
msgstr "Izaberite jezik"

#: ../../install2.pm_.c:41
msgid "Select installation class"
msgstr "Instalacione klase"

#: ../../install2.pm_.c:42
msgid "Hard drive detection"
msgstr "Detekcija hard diska"

#: ../../install2.pm_.c:43
msgid "Configure mouse"
msgstr "Podešavanje miša"

#: ../../install2.pm_.c:44
msgid "Choose your keyboard"
msgstr "Izaberi tastaturu"

#: ../../install2.pm_.c:45 ../../install_steps_interactive.pm_.c:497
msgid "Miscellaneous"
msgstr "Razne opcije"

#: ../../install2.pm_.c:46
msgid "Setup filesystems"
msgstr "Podesi fajl-sisteme"

#: ../../install2.pm_.c:47
msgid "Format partitions"
msgstr "Formatiraj particije"

#: ../../install2.pm_.c:48
msgid "Choose packages to install"
msgstr "Paketi za instalaciju"

#: ../../install2.pm_.c:49
msgid "Install system"
msgstr "Instaliraj sistem"

#: ../../install2.pm_.c:50
msgid "Configure networking"
msgstr "Podesi mrežu"

#: ../../install2.pm_.c:52
msgid "Configure timezone"
msgstr "Podesi vremensku zonu"

#: ../../install2.pm_.c:53
msgid "Configure services"
msgstr "Podesi servise"

#: ../../install2.pm_.c:54
msgid "Configure printer"
msgstr "Podesi štampač"

#: ../../install2.pm_.c:55 ../../install_steps_interactive.pm_.c:762
#: ../../install_steps_interactive.pm_.c:763
msgid "Set root password"
msgstr "Unesi root lozinku"

#: ../../install2.pm_.c:56
msgid "Add a user"
msgstr "Dodaj korisnika"

#: ../../install2.pm_.c:58
msgid "Create a bootdisk"
msgstr "Napravi startni disk"

#: ../../install2.pm_.c:60
msgid "Install bootloader"
msgstr "Instaliraj starter"

#: ../../install2.pm_.c:61
msgid "Configure X"
msgstr "Konfigurisanje X okruženja"

#: ../../install2.pm_.c:63
msgid "Auto install floppy"
msgstr "Auto instalaciona disketa "

#: ../../install2.pm_.c:65
msgid "Exit install"
msgstr "Izlaz iz instalacije"

#: ../../install_any.pm_.c:578
msgid "Error reading file $f"
msgstr "Greška kod otvaranja fajla $f"

#: ../../install_gtk.pm_.c:426
msgid "Please test the mouse"
msgstr "Molim Vas da testirate miša"

#: ../../install_gtk.pm_.c:427
#, fuzzy
msgid "To activate the mouse,"
msgstr "Molim Vas da testirate miša"

#: ../../install_gtk.pm_.c:428
msgid "MOVE YOUR WHEEL!"
msgstr ""

#: ../../install_interactive.pm_.c:23
#, c-format
msgid ""
"Some hardware on your computer needs ``proprietary'' drivers to work.\n"
"You can find some information about them at: %s"
msgstr ""
"Neke hardverske komponente u vašem računaru zahtevaju odgovarajuće drajvere "
"da bi normalno funkcionisali.\n"
"Informacije o njima možete pronaći na: %s"

#: ../../install_interactive.pm_.c:41
msgid ""
"You must have a root partition.\n"
"For this, create a partition (or click on an existing one).\n"
"Then choose action ``Mount point'' and set it to `/'"
msgstr ""
"Morate imati  root particiju.\n"
"Za ovo, kreirajte particiju (ili kliknite na postojeću).\n"
"Zatim izaberite \"Tačka montiranja\" i podesite na `/'"

#: ../../install_interactive.pm_.c:46 ../../install_steps_graphical.pm_.c:259
msgid "You must have a swap partition"
msgstr "Morate imati swap particiju"

#: ../../install_interactive.pm_.c:47 ../../install_steps_graphical.pm_.c:261
msgid ""
"You don't have a swap partition\n"
"\n"
"Continue anyway?"
msgstr ""
"Hm, nema swap particije\n"
"\n"
"Svejedno nastaviti dalje ?"

#: ../../install_interactive.pm_.c:68
msgid "Use free space"
msgstr "Koristi slobodan prostor"

#: ../../install_interactive.pm_.c:70
msgid "Not enough free space to allocate new partitions"
msgstr "Nema dovoljno slobodnog prostora za alociranje novih particija"

#: ../../install_interactive.pm_.c:78
msgid "Use existing partition"
msgstr "Koristi postojeću particiju"

#: ../../install_interactive.pm_.c:80
msgid "There is no existing partition to use"
msgstr "Nema ni jedne pariticije za rad"

#: ../../install_interactive.pm_.c:87
msgid "Use the Windows partition for loopback"
msgstr "Koristi Windows particiju za loopback"

#: ../../install_interactive.pm_.c:90
#, fuzzy
msgid "Which partition do you want to use for Linux4Win?"
msgstr "Koju particiju želite da korisite za Linux4Win?"

#: ../../install_interactive.pm_.c:92
msgid "Choose the sizes"
msgstr "Izaberite  veličinu"

#: ../../install_interactive.pm_.c:93
msgid "Root partition size in MB: "
msgstr "Veličina Root particije u MB:"

#: ../../install_interactive.pm_.c:94
msgid "Swap partition size in MB: "
msgstr "Veličina Swap particije u MB:"

#: ../../install_interactive.pm_.c:102
msgid "Use the free space on the Windows partition"
msgstr "Korisiti slobodan prostor na Windows particiji"

#: ../../install_interactive.pm_.c:105
msgid "Which partition do you want to resize?"
msgstr "Kojoj particiji  želite da promenite veličinu?"

#: ../../install_interactive.pm_.c:107
msgid "Computing Windows filesystem bounds"
msgstr "Proračunavam granice Windows fajl-sistema"

#: ../../install_interactive.pm_.c:110
#, c-format
msgid ""
"The FAT resizer is unable to handle your partition, \n"
"the following error occured: %s"
msgstr ""
"Program za promenu veličine FAT paritcija ne može da upravlja vašom "
"particijom, \n"
"zbog sledeće greške: %s"

#: ../../install_interactive.pm_.c:113
msgid "Your Windows partition is too fragmented, please run ``defrag'' first"
msgstr ""
"Vaša Windows particija je previše fragmentirana, prvo pokrenite ``defrag''"

#: ../../install_interactive.pm_.c:114
msgid ""
"WARNING!\n"
"\n"
"DrakX will now resize your Windows partition. Be careful: this operation is\n"
"dangerous. If you have not already done so, you should first exit the\n"
"installation, run scandisk under Windows (and optionally run defrag), then\n"
"restart the installation. You should also backup your data.\n"
"When sure, press Ok."
msgstr ""
"PAŽNJA !\n"
"\n"
"DrakX treba da izmeni veličinu Windows particije. Budite pažljivi: ova\n"
"operacija je opasna. Ukoliko to do sada niste radili, prvo treba da izađete "
"iz instalacije,pokrenete pod Windows-om\n"
"scandisk (eventualno i defrag), a onda ponovo pokrenite instalaciju.\n"
"Ako ste sigurni, pritisnite Ok (U redu)."

#: ../../install_interactive.pm_.c:123
msgid "Which size do you want to keep for windows on"
msgstr "Koju veličinu želite da zadržite za prozore"

#: ../../install_interactive.pm_.c:124
#, c-format
msgid "partition %s"
msgstr "particija %s "

#: ../../install_interactive.pm_.c:130
#, c-format
msgid "FAT resizing failed: %s"
msgstr "FAT izmena veličine neuspela: %s"

#: ../../install_interactive.pm_.c:145
msgid ""
"There is no FAT partitions to resize or to use as loopback (or not enough "
"space left)"
msgstr ""
"Ne postoje FAT particije kojima se može promeniti veličina ili koje se mogu "
"korisititi za loopback (ili nema dovoljno slobodnog prostora)"

#: ../../install_interactive.pm_.c:151
msgid "Erase entire disk"
msgstr "Izbriši celi disk"

#: ../../install_interactive.pm_.c:151
msgid "Remove Windows(TM)"
msgstr "Ukloni Windows(TM)"

#: ../../install_interactive.pm_.c:154
msgid "You have more than one hard drive, which one do you install linux on?"
msgstr ""
"Imate više od jednog hard diska, na koji od njih želite da instalirate Linux "
"?"

#: ../../install_interactive.pm_.c:157
#, c-format
msgid "ALL existing partitions and their data will be lost on drive %s"
msgstr "SVE postojeće particije i podaci na disku %s će biti izgubljeni"

#: ../../install_interactive.pm_.c:165
msgid "Expert mode"
msgstr "Ekspert mod"

#: ../../install_interactive.pm_.c:165
msgid "Use diskdrake"
msgstr "Koristi diskdrake"

#: ../../install_interactive.pm_.c:169
msgid "Use fdisk"
msgstr "Koristi fdisk"

#: ../../install_interactive.pm_.c:172
#, c-format
msgid ""
"You can now partition %s.\n"
"When you are done, don't forget to save using `w'"
msgstr ""
"Sada možete particionirati vaš %s hard disk uređaj\n"
"Kada završite,ne zaboravite da potvrdite koristeći `w'"

#: ../../install_interactive.pm_.c:196
#, fuzzy
msgid "You don't have enough free space on your Windows partition"
msgstr "Korisiti slobodan prostor na Windows particiji"

#: ../../install_interactive.pm_.c:211
#, fuzzy
msgid "I can't find any room for installing"
msgstr "Ne mogu dodati više ni jednu particiju"

#: ../../install_interactive.pm_.c:214
msgid "The DrakX Partitioning wizard found the following solutions:"
msgstr "DrakX čarobnjak za particioniranje je pronašao sledeća rešenja:"

#: ../../install_interactive.pm_.c:219
#, c-format
msgid "Partitioning failed: %s"
msgstr "Particioniranje nije uspelo : %s"

#: ../../install_interactive.pm_.c:234
msgid "Bringing up the network"
msgstr "Pristupam  mrežu"

#: ../../install_interactive.pm_.c:239
msgid "Bringing down the network"
msgstr "Odstupam od mreže"

#: ../../install_steps.pm_.c:74
msgid ""
"An error occurred, but I don't know how to handle it nicely.\n"
"Continue at your own risk."
msgstr ""
"Greška, ali neznam kako da je razrešim.\n"
"Nastavite na vaš rizik!"

#: ../../install_steps.pm_.c:202
#, c-format
msgid "Duplicate mount point %s"
msgstr "Duplirana tačka montiranja %s"

#: ../../install_steps.pm_.c:385
msgid ""
"Some important packages didn't get installed properly.\n"
"Either your cdrom drive or your cdrom is defective.\n"
"Check the cdrom on an installed computer using \"rpm -qpl "
"Mandrake/RPMS/*.rpm\"\n"
msgstr ""
"Neki važni paketi nisu dobro instalirani.\n"
"Vaš cdrom uređaj ili cd su neispravni.\n"
"Proverite cdrom na instaliranom kompjuteru koristeće \"rpm -qpl "
"Mandrake/RPMS/*.rpm\"\n"

#: ../../install_steps.pm_.c:458
#, c-format
msgid "Welcome to %s"
msgstr "Dobrošli u  %s"

#: ../../install_steps.pm_.c:670
msgid "No floppy drive available"
msgstr "Nepristupačan disketni uređaj"

#: ../../install_steps_auto_install.pm_.c:43
#: ../../install_steps_stdio.pm_.c:23
#, c-format
msgid "Entering step `%s'\n"
msgstr "Pokrećem korak `%s'\n"

#: ../../install_steps_graphical.pm_.c:287
msgid "Choose the size you want to install"
msgstr "Izaberite veličinu komponenti za instalaciju"

#: ../../install_steps_graphical.pm_.c:334
msgid "Total size: "
msgstr "Ukupna veličina: "

#: ../../install_steps_graphical.pm_.c:346 ../../install_steps_gtk.pm_.c:353
#: ../../standalone/rpmdrake_.c:136
#, c-format
msgid "Version: %s\n"
msgstr "Verzija: %s\n"

#: ../../install_steps_graphical.pm_.c:347 ../../install_steps_gtk.pm_.c:354
#: ../../standalone/rpmdrake_.c:137
#, c-format
msgid "Size: %d KB\n"
msgstr "Veličina: %d KB\n"

#: ../../install_steps_graphical.pm_.c:462 ../../install_steps_gtk.pm_.c:260
msgid "Choose the packages you want to install"
msgstr "Izaberi pakete za instalaciju"

#: ../../install_steps_graphical.pm_.c:465 ../../install_steps_gtk.pm_.c:263
msgid "Info"
msgstr "Info"

#: ../../install_steps_graphical.pm_.c:473 ../../install_steps_gtk.pm_.c:268
#: ../../install_steps_interactive.pm_.c:216 ../../standalone/rpmdrake_.c:161
msgid "Install"
msgstr "Instaliraj"

#: ../../install_steps_graphical.pm_.c:492 ../../install_steps_gtk.pm_.c:466
#: ../../install_steps_interactive.pm_.c:594
msgid "Installing"
msgstr "Instaliram"

#: ../../install_steps_graphical.pm_.c:499 ../../install_steps_gtk.pm_.c:472
msgid "Please wait, "
msgstr "Molim sačekajte"

#: ../../install_steps_graphical.pm_.c:501 ../../install_steps_gtk.pm_.c:474
msgid "Time remaining "
msgstr "Preostalo vreme"

#: ../../install_steps_graphical.pm_.c:502 ../../install_steps_gtk.pm_.c:475
msgid "Total time "
msgstr "Ukupno vreme"

#: ../../install_steps_graphical.pm_.c:507 ../../install_steps_gtk.pm_.c:484
#: ../../install_steps_interactive.pm_.c:594
msgid "Preparing installation"
msgstr "Pripremam instalaciju"

#: ../../install_steps_graphical.pm_.c:528 ../../install_steps_gtk.pm_.c:500
#, c-format
msgid "Installing package %s"
msgstr "Instaliram paket %s"

#: ../../install_steps_graphical.pm_.c:553 ../../install_steps_gtk.pm_.c:569
#: ../../install_steps_gtk.pm_.c:573
msgid "Go on anyway?"
msgstr "Svejedno nastaviti dalje ?"

#: ../../install_steps_graphical.pm_.c:553 ../../install_steps_gtk.pm_.c:569
msgid "There was an error ordering packages:"
msgstr "Greška u listi paketa:"

#: ../../install_steps_graphical.pm_.c:577
#: ../../install_steps_interactive.pm_.c:1003
msgid "Use existing configuration for X11?"
msgstr "Da li da koristim postojeću konfiguraciju za X11 ?"

#: ../../install_steps_gtk.pm_.c:136
msgid ""
"Your system is low on resource. You may have some problem installing\n"
"Linux-Mandrake. If that occurs, you can try a text install instead. For "
"this,\n"
"press `F1' when booting on CDROM, then enter `text'."
msgstr ""
"Vaš sistem ima manjak snage. Usled toga možete imati problema pri "
"instalaciji\n"
"Linux-Mandrake. Ukoliko se oni pojave, možete probati tekstualnu "
"instalaciju. Da bi to postigli,\n"
"pritisnite `F1' pri startanju sa CDROM-a, a onda ukucajte  `text'."

#: ../../install_steps_gtk.pm_.c:150
msgid "Please, choose one of the following classes of installation:"
msgstr "Molim vas da izabeterte jednu od sledećih instalacionih klasa:"

#: ../../install_steps_gtk.pm_.c:215
#, c-format
msgid ""
"The total size for the groups you have selected is approximately %d MB.\n"
msgstr "Ukupna veličina grupa koje ste izabrali iznosi  %d MB.\n"

#: ../../install_steps_gtk.pm_.c:217
msgid ""
"If you wish to install less than this size,\n"
"select the percentage of packages that you want to install.\n"
"\n"
"A low percentage will install only the most important packages;\n"
"a percentage of 100%% will install all selected packages."
msgstr ""
"Ukoliko želite da instalirate manje,\n"
"izaberite procentualno broj paketa koje želite da instalirate.\n"
"\n"
"Pri malom procentu će se instalirati samo važni paketi;\n"
"dok će pri procentu od 100%% biti instalirani svi paketi."

#: ../../install_steps_gtk.pm_.c:222
msgid ""
"You have space on your disk for only %d%% of these packages.\n"
"\n"
"If you wish to install less than this,\n"
"select the percentage of packages that you want to install.\n"
"A low percentage will install only the most important packages;\n"
"a percentage of %d%% will install as many packages as possible."
msgstr ""
"Na vašem disku ima mesta samo za %d%% ovih paketa.\n"
"\n"
"Ukoliko želite da instalirate manje od ovoga,\n"
"izaberite procentualno broj paketa koje želite da instalirate.\n"
"Pri malom procentu će se instalirati samo važni paketi;\n"
"dok će pri procentu od  %d%% biti instalirano maksimalno moguć broj paketa"

#: ../../install_steps_gtk.pm_.c:228
msgid "You will be able to choose them more specifically in the next step."
msgstr "Moći ćete da ih preciznije birate u sledećem koraku."

#: ../../install_steps_gtk.pm_.c:230
msgid "Percentage of packages to install"
msgstr "Procenat paketa za instalaciju"

#: ../../install_steps_gtk.pm_.c:272
msgid "Automatic dependencies"
msgstr "Automatske  zavisnosti"

#: ../../install_steps_gtk.pm_.c:332 ../../standalone/rpmdrake_.c:101
msgid "Expand Tree"
msgstr "Proširi stablo"

#: ../../install_steps_gtk.pm_.c:333 ../../standalone/rpmdrake_.c:102
msgid "Collapse Tree"
msgstr "Skupi stablo"

#: ../../install_steps_gtk.pm_.c:334
msgid "Toggle between flat and group sorted"
msgstr "Birajte: ravno ili grupno sortirano"

#: ../../install_steps_gtk.pm_.c:351
msgid "Bad package"
msgstr "Loš paket"

#: ../../install_steps_gtk.pm_.c:352
#, c-format
msgid "Name: %s\n"
msgstr "Ime:  %s\n"

#: ../../install_steps_gtk.pm_.c:355
#, c-format
msgid "Importance: %s\n"
msgstr "Važno: %s\n"

#: ../../install_steps_gtk.pm_.c:363
#, c-format
msgid "Total size: %d / %d MB"
msgstr "Ukupna veličina: %d / %d MB"

#: ../../install_steps_gtk.pm_.c:382
msgid ""
"You can't select this package as there is not enough space left to install it"
msgstr "Ne možete selektovati ovaj paket jer nema više slobodnog prostora"

#: ../../install_steps_gtk.pm_.c:386
msgid "The following packages are going to be installed"
msgstr "Sledeći paketi treba da budu instalirani"

#: ../../install_steps_gtk.pm_.c:387
msgid "The following packages are going to be removed"
msgstr "Sledeći paketi će biti izbrisani"

#: ../../install_steps_gtk.pm_.c:397
msgid "You can't select/unselect this package"
msgstr "Ne možete selektovati/deselektovati ovaj paket"

#: ../../install_steps_gtk.pm_.c:416
msgid "This is a mandatory package, it can't be unselected"
msgstr "Ovo je obavezni paket,i ne može biti deselektovan"

#: ../../install_steps_gtk.pm_.c:418
msgid "You can't unselect this package. It is already installed"
msgstr "Možete deselektovati ovaj paket jer je već instaliran"

#: ../../install_steps_gtk.pm_.c:422
msgid ""
"This package must be upgraded\n"
"Are you sure you want to deselect it?"
msgstr ""
"Ovaj paket mora biti ažuriran\n"
"Da li sigurno želite da ga deselektujete ?"

#: ../../install_steps_gtk.pm_.c:425
msgid "You can't unselect this package. It must be upgraded"
msgstr "Ne možete deselektovati ovaj paket.On mora biti ažuriran"

#: ../../install_steps_gtk.pm_.c:469
msgid "Estimating"
msgstr "Procenjujem"

#: ../../install_steps_gtk.pm_.c:481 ../../interactive.pm_.c:86
#: ../../interactive.pm_.c:249 ../../interactive_newt.pm_.c:51
#: ../../interactive_newt.pm_.c:99 ../../interactive_stdio.pm_.c:27
#: ../../my_gtk.pm_.c:246 ../../my_gtk.pm_.c:486
msgid "Cancel"
msgstr "Obustavi"

#: ../../install_steps_gtk.pm_.c:495
#, c-format
msgid "%d packages"
msgstr "%d paketa"

#: ../../install_steps_gtk.pm_.c:531
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 ""

#: ../../install_steps_gtk.pm_.c:559 ../../install_steps_interactive.pm_.c:147
msgid "Accept"
msgstr "Prihvati"

#: ../../install_steps_gtk.pm_.c:559
#, c-format
msgid ""
"Change your Cd-Rom!\n"
"\n"
"Please insert the Cd-Rom labelled \"%s\" in your drive and press Ok when "
"done.\n"
"If you don't have it, press Cancel to avoid installation from this Cd-Rom."
msgstr ""
"Promenite vaš Cd-Rom!\n"
"\n"
"Ubacite vaš CD označen sa \"%s\" u pogon i pritisnite OK kada ste spremni.\n"
"Ukoliko ga nemate pritisnite  Poništi."

#: ../../install_steps_gtk.pm_.c:559 ../../install_steps_interactive.pm_.c:147
msgid "Refuse"
msgstr "Odbaci"

#: ../../install_steps_gtk.pm_.c:573
msgid "There was an error installing packages:"
msgstr "Greška pri instalaciji paketa:"

#: ../../install_steps_interactive.pm_.c:38
msgid "An error occurred"
msgstr "Xm,pojavila se  greška"

#: ../../install_steps_interactive.pm_.c:54
msgid "Please, choose a language to use."
msgstr "IZaberite koji jezik želite da korisitite:"

#: ../../install_steps_interactive.pm_.c:70
msgid "License agreement"
msgstr ""

#: ../../install_steps_interactive.pm_.c:71
msgid ""
"Introduction\n"
"\n"
"The operating system and the different components available in the "
"Linux-Mandrake distribution \n"
"shall be called the \"Software Products\" hereafter. The Software Products "
"include, but are not \n"
"restricted to, the set of programs, methods, rules and documentation related "
"to the operating \n"
"system and the different components of the Linux-Mandrake distribution.\n"
"\n"
"\n"
"1. License Agreement\n"
"\n"
"Please read carefully this document. This document is a license agreement "
"between you and  \n"
"MandrakeSoft S.A. which applies to the Software Products.\n"
"By installing, duplicating or using the Software Products in any manner, you "
"explicitly \n"
"accept and fully agree to conform to the terms and conditions of this "
"License. \n"
"If you disagree with any portion of the License, you are not allowed to "
"install, duplicate or use \n"
"the Software Products. \n"
"Any attempt to install, duplicate or use the Software Products in a manner "
"which does not comply \n"
"with the terms 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 "
"copies of the \n"
"Software Products.\n"
"\n"
"\n"
"2. Limited Warranty\n"
"\n"
"The Software Products and attached documentation are provided \"as is\", "
"with no warranty, to the \n"
"extent permitted by law.\n"
"MandrakeSoft S.A. will, in no circumstances and to the extent permitted by "
"law, be liable for any special,\n"
"incidental, direct or indirect damages whatsoever (including without "
"limitation damages for loss of \n"
"business, interruption of business, financial loss, legal fees and penalties "
"resulting from a court \n"
"judgment, or any other consequential loss) arising out of  the use or "
"inability to use the Software \n"
"Products, even if MandrakeSoft S.A. has been advised of the possibility or "
"occurance of such \n"
"damages.\n"
"\n"
"LIMITED LIABILITY LINKED TO POSSESSING OR USING PROHIBITED SOFTWARE IN SOME "
"COUNTRIES\n"
"\n"
"To the extent permitted by law, MandrakeSoft S.A. or its distributors will, "
"in no circumstances, be \n"
"liable for any special, incidental, direct or indirect damages whatsoever "
"(including without \n"
"limitation damages for loss of business, interruption of business, financial "
"loss, legal fees \n"
"and penalties resulting from a court judgment, or any other consequential "
"loss) arising out \n"
"of the possession and use of software components or arising out of  "
"downloading software components \n"
"from one of Linux-Mandrake sites  which are prohibited or restricted in some "
"countries by local laws.\n"
"This limited liability applies to, but is not restricted to, the strong "
"cryptography components \n"
"included in the Software Products.\n"
"\n"
"\n"
"3. The GPL License and Related Licenses\n"
"\n"
"The Software Products consist of components created by different persons or "
"entities.  Most \n"
"of these components are governed under the terms and conditions of the GNU "
"General Public \n"
"Licence, hereafter called \"GPL\", or of similar licenses. Most of these "
"licenses allow you to use, \n"
"duplicate, adapt or redistribute the components which they cover. Please "
"read carefully the terms \n"
"and conditions of the license agreement for each component before using any "
"component. Any question \n"
"on a component license should be addressed to the component author and not "
"to MandrakeSoft.\n"
"The programs developed by MandrakeSoft S.A. are governed by the GPL License. "
"Documentation written \n"
"by MandrakeSoft S.A. is governed by a specific license. Please refer to the "
"documentation for \n"
"further details.\n"
"\n"
"\n"
"4. Intellectual Property Rights\n"
"\n"
"All rights to the components of the Software Products belong to their "
"respective authors and are \n"
"protected by intellectual property and copyright laws applicable to software "
"programs.\n"
"MandrakeSoft S.A. reserves its rights to modify or adapt the Software "
"Products, as a whole or in \n"
"parts, by all means and for all purposes.\n"
"\"Mandrake\", \"Linux-Mandrake\" and associated logos are trademarks of "
"MandrakeSoft S.A.  \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 MandrakeSoft S.A.  \n"
msgstr ""

#: ../../install_steps_interactive.pm_.c:154
#: ../../standalone/keyboarddrake_.c:21
msgid "Keyboard"
msgstr "Tastatura"

#: ../../install_steps_interactive.pm_.c:155
#: ../../standalone/keyboarddrake_.c:22
msgid "Please, choose your keyboard layout."
msgstr "Koji  raspored tastature želite ?"

#: ../../install_steps_interactive.pm_.c:166
msgid "You can choose other languages that will be available after install"
msgstr "Možete izabrati drugi jezik koji će biti dostupan posle instalacije "

#: ../../install_steps_interactive.pm_.c:173
#: ../../install_steps_interactive.pm_.c:520
msgid "All"
msgstr "Sve"

#: ../../install_steps_interactive.pm_.c:181
#: ../../install_steps_interactive.pm_.c:227
msgid "Install Class"
msgstr "Instalacije klase"

#: ../../install_steps_interactive.pm_.c:181
msgid "Which installation class do you want?"
msgstr "Koju  instalacionu klasu birate ?"

#: ../../install_steps_interactive.pm_.c:183
#, fuzzy
msgid "Install/Update"
msgstr "Instalacija/Ažuriranje"

#: ../../install_steps_interactive.pm_.c:183
#, fuzzy
msgid "Is this an install or an update?"
msgstr "Da li je ovo instalacija ili spasavanje ?"

#: ../../install_steps_interactive.pm_.c:192
msgid "Recommended"
msgstr "Preporučeno"

#: ../../install_steps_interactive.pm_.c:195
#: ../../install_steps_interactive.pm_.c:211
msgid "Customized"
msgstr "Izbor po želji"

#: ../../install_steps_interactive.pm_.c:196
#: ../../install_steps_interactive.pm_.c:211
msgid "Expert"
msgstr "Ekspert"

#: ../../install_steps_interactive.pm_.c:206
msgid ""
"Are you sure you are an expert? \n"
"You will be allowed to make powerful but dangerous things here.\n"
"\n"
"You will be asked questions such as: ``Use shadow file for passwords?'',\n"
"are you ready to answer that kind of questions?"
msgstr ""
"Da li ste sigurno ekspert !? \n"
"Xej,bez šale,jer dobijate pristup moćnim ali opasnim stvarima.\n"
"Odgovaraćete na pitanja kao što je: ``Da li želite shadow fajl za lozinke "
"?'',\n"
"da li ste spremni na odgovorite na ovakva pitanja ?"

#: ../../install_steps_interactive.pm_.c:216
#, fuzzy
msgid "Update"
msgstr "Ažuriranje"

#: ../../install_steps_interactive.pm_.c:222
msgid "Workstation"
msgstr "Radna stanica"

#: ../../install_steps_interactive.pm_.c:223
msgid "Development"
msgstr "Razvojna"

#: ../../install_steps_interactive.pm_.c:224
msgid "Server"
msgstr "Server"

#: ../../install_steps_interactive.pm_.c:228
msgid "What is your system used for?"
msgstr "Za šta će te korisiti sistem ?"

#: ../../install_steps_interactive.pm_.c:244 ../../standalone/mousedrake_.c:24
msgid "Please, choose the type of your mouse."
msgstr "Izaberite tip miša"

#: ../../install_steps_interactive.pm_.c:251 ../../standalone/mousedrake_.c:40
msgid "Mouse Port"
msgstr "Port za miša"

#: ../../install_steps_interactive.pm_.c:252
msgid "Please choose on which serial port your mouse is connected to."
msgstr "Izaberite na koji serijski port je vaš miš priključen."

#: ../../install_steps_interactive.pm_.c:271
msgid "Configuring PCMCIA cards..."
msgstr "Konfigurišem PCMCIA kartice..."

#: ../../install_steps_interactive.pm_.c:271
msgid "PCMCIA"
msgstr "PCMCIA"

#: ../../install_steps_interactive.pm_.c:275
msgid "Configuring IDE"
msgstr "Konfiguracija  IDE"

#: ../../install_steps_interactive.pm_.c:275
msgid "IDE"
msgstr " IDE"

#: ../../install_steps_interactive.pm_.c:288
msgid "no available partitions"
msgstr "nema dostupnih particija"

#: ../../install_steps_interactive.pm_.c:291
msgid "Scanning partitions to find mount points"
msgstr ""

#: ../../install_steps_interactive.pm_.c:299
msgid "Choose the mount points"
msgstr "Izaberite tačke montiranja"

#: ../../install_steps_interactive.pm_.c:316
#, c-format
msgid ""
"I can't read your partition table, it's too corrupted for me :(\n"
"I can try to go on blanking bad partitions (ALL DATA will be lost!).\n"
"The other solution is to disallow DrakX to modify the partition table.\n"
"(the error is %s)\n"
"\n"
"Do you agree to loose all the partitions?\n"
msgstr ""
"Ne mogu pročitati tabelu particija, mnogo je iskvarena za mene :(\n"
"Pokušaću dalje zaobilazeći loše particijeMogu pokušati da formatiram loše "
"particije (SVI PODACI će biti izgubljeni !).\n"
"Drugo rešenje je da se DrakX onemogući da modufikuje tabelu particija.\n"
"(greška je %s)\n"

#: ../../install_steps_interactive.pm_.c:329
msgid ""
"DiskDrake failed to read correctly the partition table.\n"
"Continue at your own risk!"
msgstr ""
"DiskDrake ne može da ispravno pročita tabelu particija.\n"
"Dalji nastavak ide na vaš rizik !"

#: ../../install_steps_interactive.pm_.c:337
msgid "Root Partition"
msgstr "Root particija"

#: ../../install_steps_interactive.pm_.c:338
msgid "What is the root partition (/) of your system?"
msgstr "Na kojoj particiji je root particija (/) vašeg sistema?"

#: ../../install_steps_interactive.pm_.c:352
msgid "You need to reboot for the partition table modifications to take place"
msgstr "Treba da resetujete mašinu za primenu izmena u tabeli particija"

#: ../../install_steps_interactive.pm_.c:376
msgid "Choose the partitions you want to format"
msgstr "Izaberi particije za formatiranje"

#: ../../install_steps_interactive.pm_.c:386
msgid "Check bad blocks?"
msgstr "Proveri loše blokove ?"

#: ../../install_steps_interactive.pm_.c:397
msgid "Formatting partitions"
msgstr "Formatiranje particiju"

#: ../../install_steps_interactive.pm_.c:401
#, c-format
msgid "Creating and formatting file %s"
msgstr "Kreiranje i formatiranje fajla %s"

#: ../../install_steps_interactive.pm_.c:404
msgid "Not enough swap to fulfill installation, please add some"
msgstr "Nema dovoljno swap-a da završi instalaciju, dodajte još swap-a"

#: ../../install_steps_interactive.pm_.c:410
msgid "Looking for available packages"
msgstr "Tražim pakete"

#: ../../install_steps_interactive.pm_.c:416
msgid "Finding packages to upgrade"
msgstr "Tražim pakete za ažuriranje..."

#: ../../install_steps_interactive.pm_.c:433
#, c-format
msgid ""
"Your system has not enough space left for installation or upgrade (%d > %d)"
msgstr "Vaš sistem nema dovoljno mesta za instalaciju ili ažuriranje (%d > %d)"

#: ../../install_steps_interactive.pm_.c:449
#, c-format
msgid "Complete (%dMB)"
msgstr "Kompletna (%dMB)"

#: ../../install_steps_interactive.pm_.c:449
#, c-format
msgid "Minimum (%dMB)"
msgstr "Minimalna (%dMB)"

#: ../../install_steps_interactive.pm_.c:449
#, c-format
msgid "Recommended (%dMB)"
msgstr "Preporučena (%dMB)"

#: ../../install_steps_interactive.pm_.c:455
msgid "Custom"
msgstr "Izbor po želji"

#: ../../install_steps_interactive.pm_.c:462
msgid "Select the size you want to install"
msgstr "Izaberite veličinu  instalacije"

#: ../../install_steps_interactive.pm_.c:508
msgid "Package Group Selection"
msgstr "Odabir grupa paketa"

#: ../../install_steps_interactive.pm_.c:521
msgid "Individual package selection"
msgstr "Pojedinačno biranje paketa"

#: ../../install_steps_interactive.pm_.c:570
msgid ""
"If you have all the CDs in the list below, click Ok.\n"
"If you have none of those CDs, click Cancel.\n"
"If only some CDs are missing, unselect them, then click Ok."
msgstr ""
"Ukoliko imate gore navedene CD-ove, kliknite na  Ok.\n"
"Ukoliko nemate nijedan CD, kliknite na  Cancel.\n"
"Ako vam nedostaju  samo neki CD-ovi , deselektujte ix, a onda kliknite na  "
"Ok."

#: ../../install_steps_interactive.pm_.c:575
#, c-format
msgid "Cd-Rom labeled \"%s\""
msgstr "Cd-Rom označen kao \"%s"

#: ../../install_steps_interactive.pm_.c:603
msgid ""
"Installing package %s\n"
"%d%%"
msgstr ""
"Instaliram pakete %s\n"
"%d%%"

#: ../../install_steps_interactive.pm_.c:612
msgid "Post-install configuration"
msgstr "Postinstalaciona konfiguracija"

#: ../../install_steps_interactive.pm_.c:637
msgid ""
"You have now the possibility to download software aimed for encryption.\n"
"\n"
"WARNING:\n"
"\n"
"Due to different general requirements applicable to these software and "
"imposed\n"
"by various jurisdictions, customer and/or end user of theses software "
"should\n"
"ensure that the laws of his/their jurisdiction allow him/them to download, "
"stock\n"
"and/or use these software.\n"
"\n"