- fixes ugly bug
[root@moana ~]# poldek -n titanium -n titanium-ready -n titanium-test -s /home/users/shadzik/rpm/RPMS/
błąd: open /home/users/shadzik/rpm/RPMS/packages.ndir.md: Nie ma takiego pliku ani katalogu
uwaga: trying to scan directory /home/users/shadzik/rpm/RPMS/...
Wczytywanie [pndir]titanium...
Wczytywanie [pndir]titanium...
Wczytywanie [pndir]titanium-ready...
Wczytywanie [pndir]titanium-ready...
Wczytywanie [pndir]titanium-test...
Wczytywanie [pndir]titanium-test...
Wczytywanie [dir]/home/users/shadzik/rpm/RPMS/...
200..400..436
Przeczytano 11839 pakietów
Usunięto 1 zdublowany pakiet z listy dostępnych
Something wrong, something not quite right with 0.30 (snap20080820.23)
Assertion 'pkg->_refcnt < INT16_MAX - 1' failed, pkg.c:1461
Please report this bug to <mis@pld-linux.org>.
Przerwane
Changed files:
poldek-refcnt.patch -> 1.1
--- /dev/null
+--- pkg.h-orig 2009-03-31 12:08:29.238718195 +0200
++++ pkg.h 2009-03-31 12:08:49.843187842 +0200
+@@ -106,7 +106,7 @@
+ int32_t itime; /* date of installation */
+
+ /* private, don't touch */
+- int16_t _refcnt;
++ uint16_t _refcnt;
+ tn_alloc *na;
+ int16_t _buf_size;
+ char _buf[0]; /* private, store all string members */
+--- pkg.c-orig 2009-03-31 11:37:37.825570800 +0200
++++ pkg.c 2009-03-31 12:05:24.631861551 +0200
+@@ -1458,7 +1458,7 @@
+ pkg->na ? pkg->na->_refcnt : -1,
+ pkg->_refcnt, &pkg->_refcnt);
+ }
+- n_assert(pkg->_refcnt < INT16_MAX - 1);
++ n_assert(pkg->_refcnt < UINT16_MAX - 1);
+ pkg->_refcnt++;
+ return pkg;
+ }