From a46c8a230ca0ca4963ea4eceee2bc76deb3f8f57 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 30 Mar 2011 16:36:00 +0000 Subject: noprml ignores dummy now cart diff --git a/rhnop-server/debian/changelog b/rhnop-server/debian/changelog index a82b0a4..cf023e3 100644 --- a/rhnop-server/debian/changelog +++ b/rhnop-server/debian/changelog @@ -1,3 +1,9 @@ +rhnop-server (0.4) unstable; urgency=low + + * noprml ignores dummy carts now. + + -- Christian Pointner Wed, 30 Mar 2011 18:35:22 +0200 + rhnop-server (0.3) unstable; urgency=low * some cleanup. diff --git a/rhnop-server/nopsyncd.conf b/rhnop-server/nopsyncd.conf index 0338cb6..ec7ba0a 100644 --- a/rhnop-server/nopsyncd.conf +++ b/rhnop-server/nopsyncd.conf @@ -2,6 +2,9 @@ queue_name=/rhnop tcp_host=* tcp_port=2345 +dummy_now_cart=50001 +dummy_next_cart=50002 + rddb_db=rivendell rddb_host=127.0.0.1 #rddb_port=3306 diff --git a/rhnop-server/qlistener.lua b/rhnop-server/qlistener.lua index b419737..3885f41 100644 --- a/rhnop-server/qlistener.lua +++ b/rhnop-server/qlistener.lua @@ -50,7 +50,7 @@ function handle_message(msg) io.stderr:write("ignoring malformed message\n") else -- TODO better sanity checks: is now info new or just next? - if last_cart ~= nowcart then + if last_cart ~= nowcart and nowcart ~= conf.dummy_now_cart then last_cart = nowcart handle_now(timestamp, nowcart, nowlen) end -- cgit v0.10.2