.PHONY: headers library clean veryclean all binary program doc
all headers library clean veryclean binary program doc:
$(MAKE) -C apt-pkg $@
+ $(MAKE) -C methods $@
$(MAKE) -C cmdline $@
$(MAKE) -C deity $@
$(MAKE) -C gui $@
.SILENT:
SRCDIR=@top_srcdir@
-SUBDIRS:=./doc ./bin ./obj ./include/apt-pkg ./include/deity
-SUBDIRS+=./obj/doc ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline
+SUBDIRS:=./doc ./bin ./bin/methods ./obj ./include/apt-pkg ./include/deity
+SUBDIRS+=./obj/doc ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
+ ./obj/test ./obj/methods
BUILD:=$(shell pwd)
export BUILD
-// $Id: apt.conf,v 1.2 1998/10/08 04:55:07 jgg Exp $
+// $Id: apt.conf,v 1.3 1998/10/20 02:41:06 jgg Exp $
/* This file is an index of all APT configuration directives. It should
NOT actually be used as a real config file, though it is a completely
valid file.
Dir
{
+
State "/var/state/apt/"
{
lists "lists/";
sourcelist "sources.list";
main "apt.conf";
};
+
+ Bin {
+ methods "/home/jgg/work/apt/build/bin/methods/";
+ gzip "gzip";
+ };
};
DSelect {
}
Debug {
- pkgProblemResolver "false";
+ pkgProblemResolver "true";
+ pkgAcquire::Worker "true";
}
--- /dev/null
+# -*- make -*-
+BASE=..
+SUBDIR=test
+
+# Bring in the default rules
+include ../buildlib/defaults.mak
+
+# Scratch program to test incomplete code fragments in
+PROGRAM=scratch-test
+SLIBS = -lapt-pkg
+SOURCE = scratch.cc
+include $(PROGRAM_H)
--- /dev/null
+#include <apt-pkg/acquire-item.h>
+#include <apt-pkg/init.h>
+#include <apt-pkg/error.h>
+
+int main()
+{
+ pkgInitialize(*_config);
+
+ pkgSourceList List;
+ pkgAcquire Fetcher;
+ List.ReadMainList();
+
+ pkgSourceList::const_iterator I;
+ for (I = List.begin(); I != List.end(); I++)
+ {
+ new pkgAcqIndex(&Fetcher,I);
+ if (_error->PendingError() == true)
+ break;
+ }
+
+ _error->DumpErrors();
+}