Method: Debian::AptPkg::PkgCache.depends_count
- Defined in:
- ext/apt_pkg/pkgcache.cpp
.depends_count ⇒ Integer?
The total number of dependencies stored in the cache. Raise Debian::AptPkg::InitError when config, system, cache is not configured.
Debian::AptPkg::PkgCache.depends_count # => 551983
247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'ext/apt_pkg/pkgcache.cpp', line 247 static VALUE depends_count(VALUE self) { if (!config_system_initialized()) { rb_raise(e_mDebianAptPkgInitError, "System not initialized"); } pkgCacheFile CacheFile; pkgCache *Cache = CacheFile.GetPkgCache(); if (Cache == NULL) { return Qnil; } return INT2FIX(Cache->HeaderP->DependsCount); } |