[bug-notifications] [cswutils 0004795]: No results matched the query for CatalogRelease

Mantis Bug Tracker noreply at opencsw.org
Sat Jun 25 12:38:12 CEST 2011


The following issue requires your FEEDBACK. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4795 
====================================================================== 
Reported By:                igalic
Assigned To:                maciej
====================================================================== 
Project:                    cswutils
Issue ID:                   4795
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2011-06-24 22:11 CEST
Last Modified:              2011-06-25 12:38 CEST
====================================================================== 
Summary:                    No results matched the query for CatalogRelease
Description: 
when running make package on my machine I'll see:

CRITICAL:root:Database schema version: 1, Application expects version: 7
WARNING:root:Old database schema detected.
WARNING:root:Dropping and creating all tables.
WARNING:root:Cache database is not up to date.  Refreshing it.
WARNING:root:Refreshing the database.  It may take a long time, please be
patient.
WARNING:root:If you need a way to make it faster, please see:
WARNING:root:http://wiki.opencsw.org/checkpkg#toc5
.......................................................................................................................................................
100%
|################################################################################################################################################################################################|
INFO:root:Juicing the srv4 package stream files...
100%
|################################################################################################################################################################################################|
Traceback (most recent call last):
  File "gar//bin/checkpkg", line 179, in <module>
    main()
  File "gar//bin/checkpkg", line 127, in main
    sqo_catrel =
models.CatalogRelease.selectBy(name=options.catrel).getOne()
  File "/opt/csw/lib/python/site-packages/sqlobject/sresults.py", line
280, in getOne
    % self.sourceClass.__name__)
sqlobject.main.SQLObjectNotFound: No results matched the query for
CatalogRelease
gmake: *** [pkgcheck] Error 2
====================================================================== 

---------------------------------------------------------------------- 
 (0009137) maciej (developer) - 2011-06-25 12:38
 https://www.opencsw.org/mantis/view.php?id=4795#c9137 
---------------------------------------------------------------------- 
Hi Igor,

My suspicion is that checkpkg is called with a catalog release which is
neither current nor unstable. I'm attaching a patch which adds more
logging: it displays what catalog name was requested, and what are the
available ones. It still propagates the exception, so there will be a stack
trace at the end, but above the stack trace, there will be a bit of useful
information.

The catalog release is set around line 61 of gar.pkg.mk:

http://sourceforge.net/apps/trac/gar/browser/csw/mgar/gar/v2/gar.pkg.mk#L61

You could try setting that variable to 'current' in .garrc.



More information about the bug-notifications mailing list