Check circle and exit if circle exists, fix#457
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 18 Oct 2012 07:28:50 +0000 (15:28 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Wed, 24 Oct 2012 07:50:32 +0000 (15:50 +0800)
commit40592fe72de6888993d6c4291ce26bb5ce5dff61
tree8dfe66e35a89a0c054f7979eb2016e6f18bf6322
parent1787ef956f9374ebf703f130c5ef45f777987d0f
Check circle and exit if circle exists, fix#457

* split expand_deps into two functions, one is for generating %repo
  and the other is calling Build::readdeps to get build deps
* generate pkgddeps, which is the direct dependency dict, and this
  structure can be used to check dependency circle
* use global $config, and don't need parse everytime

Note: only direct dependency can be used while checking circle.

Change-Id: I47e8374876e043b70b8e50ecf441bf3852d9a30a
depanneur