]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - IniDBBuilderPackage.cc
2002-07-13 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / IniDBBuilderPackage.cc
index 5949a75dc2e4f1d922c6d66a3c27607a5c5a7131..760a590b7ee4bf8ca1f67c7d3a66662eef77da65 100644 (file)
@@ -234,6 +234,11 @@ IniDBBuilderPackage::buildInstalledSize (String const &size)
 void
 IniDBBuilderPackage::buildMaintainer (String const &){}
 
+/* TODO: we can multiple arch's for a given package,
+   and it may befor either source or binary, so we need to either set both
+   or track a third current package that points to whether we altering source
+   or binary at the moment
+   */
 void
 IniDBBuilderPackage::buildArchitecture (String const &arch)
 {
@@ -323,6 +328,31 @@ IniDBBuilderPackage::buildBeginProvides ()
   currentAndList = cbpv.provides();
 }
 
+void
+IniDBBuilderPackage::buildBeginBuildDepends ()
+{
+#if DEBUG
+  log (LOG_BABBLE) << "Beginning of a Build-Depends statement" << endLog;
+  dumpAndList (currentAndList);
+#endif
+  currentSpec = NULL;
+  currentOrList = NULL; /* set by the build AndListNode */
+  currentAndList = cspv.depends ();
+}
+
+  
+void
+IniDBBuilderPackage::buildBeginBinary ()
+{
+#if DEBUG
+  log (LOG_BABBLE) << "Beginning of a Binary statement" << endLog;
+  dumpAndList (currentAndList);
+#endif
+  currentSpec = NULL;
+  currentOrList = NULL; /* set by the build AndListNode */
+  currentAndList = cspv.binaries ();
+}
+
 void
 IniDBBuilderPackage::buildDescription (String const &descline)
 {
This page took 0.024206 seconds and 5 git commands to generate.