Browse Source

Sync

Author: jgg
Date: 1998-10-20 02:41:03 GMT
Sync
debian/1.8.y
Arch Librarian 18 years ago
parent
commit
024835dca7
  1. 1
      Makefile
  2. 5
      buildlib/makefile.in
  3. 11
      doc/examples/apt.conf
  4. 12
      test/makefile
  5. 22
      test/scratch.cc

1
Makefile

@ -7,6 +7,7 @@
.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 $@

5
buildlib/makefile.in

@ -5,8 +5,9 @@
.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

11
doc/examples/apt.conf

@ -1,4 +1,4 @@
// $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.
@ -18,6 +18,7 @@ APT {
Dir
{
State "/var/state/apt/"
{
lists "lists/";
@ -36,6 +37,11 @@ Dir
sourcelist "sources.list";
main "apt.conf";
};
Bin {
methods "/home/jgg/work/apt/build/bin/methods/";
gzip "gzip";
};
};
DSelect {
@ -43,5 +49,6 @@ DSelect {
}
Debug {
pkgProblemResolver "false";
pkgProblemResolver "true";
pkgAcquire::Worker "true";
}

12
test/makefile

@ -0,0 +1,12 @@
# -*- 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)

22
test/scratch.cc

@ -0,0 +1,22 @@
#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();
}
Loading…
Cancel
Save