[csw-devel] SF.net SVN: gar:[13043] csw/mgar/gar/v2/lib/python/checkpkg_lib.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Jan 21 17:12:33 CET 2011
Revision: 13043
http://gar.svn.sourceforge.net/gar/?rev=13043&view=rev
Author: wahwah
Date: 2011-01-21 16:12:33 +0000 (Fri, 21 Jan 2011)
Log Message:
-----------
pkgdb: Warn on pkg existing in catalog
When running add-to-cat and the package already exists in the catalog, display
a warning message rather than a debug message.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/checkpkg_lib.py
Modified: csw/mgar/gar/v2/lib/python/checkpkg_lib.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_lib.py 2011-01-21 15:10:19 UTC (rev 13042)
+++ csw/mgar/gar/v2/lib/python/checkpkg_lib.py 2011-01-21 16:12:33 UTC (rev 13043)
@@ -971,9 +971,9 @@
m.Srv4FileInCatalog.q.arch==sqo_arch,
m.Srv4FileInCatalog.q.catrel==sqo_catrel,
m.Srv4FileInCatalog.q.srv4file==sqo_srv4))
- if len(list(res)):
- logging.debug("%s is already part of %s %s %s",
- sqo_srv4, osrel, arch, catrel)
+ if res.count():
+ logging.warning("%s is already part of %s %s %s",
+ sqo_srv4, osrel, arch, catrel)
# Our srv4 is already part of that catalog.
return
obj = m.Srv4FileInCatalog(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list