Mantis - cswutils
Viewing Issue Advanced Details
4794 regular use minor always 2011-06-24 21:47 2011-07-02 19:21
igalic  
maciej  
normal  
closed  
fixed  
none    
none  
0004794: pkgdb init chokes on package names with numbers
Traceback (most recent call last):
  File "gar/bin/pkgdb", line 685, in <module>
    main()
  File "gar/bin/pkgdb", line 413, in main
    dm.AutoManage()
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/database.py", line 65, in AutoManage
    self._CheckAndMaybeFixFreshness(auto_fix=auto_manage)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/database.py", line 105, in _CheckAndMaybeFixFreshness
    ldm.RefreshDatabase()
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/database.py", line 322, in RefreshDatabase
    include_prefixes=frozenset(["CSW"]))
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/system_pkgmap.py", line 351, in ImportData
    self._ImportFiles(data, include_prefixes, show_progress=show_progress)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/system_pkgmap.py", line 480, in _ImportFiles
    sqo_srv4, osrel, arch, sqo_catrel.name)
  File "/buildr/mgar/pkg/zbx-agent/trunk/gar/lib/python/checkpkg_lib.py", line 1011, in AddSrv4ToCatalog
    % sqo_srv4.catalogname)
checkpkg_lib.CatalogDatabaseError: There already is a package with that catalogname: sunw_i_rf
Find attached a patch to fix the issue.
? file icon gar.assertNotEqualsPkgName.diff [^] (1,155 bytes) 2011-06-24 21:47
Issue History
2011-06-24 21:47 igalic New Issue
2011-06-24 21:47 igalic File Added: gar.assertNotEqualsPkgName.diff
2011-06-25 11:56 maciej Status new => assigned
2011-06-25 11:56 maciej Assigned To => maciej
2011-06-25 11:57 maciej Note Added: 0009136
2011-06-25 11:57 maciej Status assigned => resolved
2011-06-25 11:57 maciej Resolution open => fixed
2011-07-02 19:21 bwalton Status resolved => closed

Notes
(0009136)
maciej   
2011-06-25 11:57   
The patch has been submitted to the repository:

http://sourceforge.net/apps/trac/gar/changeset/14885 [^]

Thanks, Igor!