[Debtags-commits] [svn] r1924 - in daemon: . src

Enrico Zini enrico at costa.debian.org
Mon Sep 18 18:34:30 UTC 2006


Author: enrico
Date: Mon Sep 18 18:34:25 2006
New Revision: 1924

Modified:
   daemon/   (props changed)
   daemon/src/debtagsd.cpp
Log:
 r3364 at viaza:  enrico | 2006-09-18 17:52:15 +0200
 Added the 'TAGS' command


Modified: daemon/src/debtagsd.cpp
==============================================================================
--- daemon/src/debtagsd.cpp	(original)
+++ daemon/src/debtagsd.cpp	Mon Sep 18 18:34:25 2006
@@ -292,6 +292,13 @@
 				for (set<string>::const_iterator i = res.begin(); i != res.end(); ++i)
 					outputPackage(*i, conn);
 			}
+			else if (cmd == "TAGS")
+			{
+				std::set<std::string> tags = coll.getTagsOfItem(line);
+				for (set<string>::const_iterator i = tags.begin();
+						i != tags.end(); ++i)
+					conn.write(*i + "\n");
+			}
 			else if (cmd == "STAGS")
 			{
 				vector<string> terms = parseKeys(line);



More information about the Debtags-commits mailing list