Bug#369147: GetCache() segfaults if called before InitSystem()

2008-07-13 Thread Emanuele Rocca
tag 369147 patch thanks * Josh Triplett <[EMAIL PROTECTED]>, [2006-05-27 13:02 -0700]: > apt_pkg.GetCache() segfaults if called before apt_pkg.InitSystem(): > > >>> import apt_pkg > >>> apt_pkg.GetCache() > Segmentation fault > > It should raise an exception like other functions do: > >

Bug#369147: GetCache() segfaults if called before InitSystem()

2006-05-27 Thread Josh Triplett
Package: python-apt Version: 0.6.17 apt_pkg.GetCache() segfaults if called before apt_pkg.InitSystem(): >>> import apt_pkg >>> apt_pkg.GetCache() Segmentation fault It should raise an exception like other functions do: >>> import apt_pkg >>> apt_pkg.VersionCompare("1","2") Traceback (most recen