Commit 8a3ac87f authored by Bernhard Link's avatar Bernhard Link

some preparations to add a checkin command

parent 33ffca3c
......@@ -3,8 +3,8 @@ bin_PROGRAMS = mirrorer
CPPFLAGS = @CPPFLAGS@ -D_GNU_SOURCE=1 -DPKGDATADIR=\"$(pkgdatadir)\" -Wall
mirrorer_SOURCES = main.c files.c md5.c md5sum.c dirs.c chunks.c reference.c packages.c binaries.c sources.c names.c dpkgversions.c release.c mprintf.c download.c updates.c strlist.c signature.c distribution.c extractcontrol.c
mirrorer_SOURCES = main.c files.c md5.c md5sum.c dirs.c chunks.c reference.c packages.c binaries.c sources.c names.c dpkgversions.c release.c mprintf.c download.c updates.c strlist.c signature.c distribution.c extractcontrol.c checkindeb.c checkindsc.c checkin.c
mirrorer_LDFLAGS += -ldb3
noinst_HEADERS = md5.h md5sum.h dirs.h files.h chunks.h reference.h packages.h binaries.h sources.h names.h release.h error.h mprintf.h download.h updates.h strlist.h signature.h distribution.h extractcontrol.h
noinst_HEADERS = md5.h md5sum.h dirs.h files.h chunks.h reference.h packages.h binaries.h sources.h names.h release.h error.h mprintf.h download.h updates.h strlist.h signature.h distribution.h extractcontrol.h checkindeb.h checkindsc.h
MAINTAINERCLEANFILES = Makefile.in configure install-sh stamp-h.in aclocal.m4 config.h.in mkinstalldirs
/* This file is part of "mirrorer" (TODO: find better title)
* Copyright (C) 2003 Bernhard R. Link
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <config.h>
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <string.h>
#include <malloc.h>
#include <zlib.h>
#include "error.h"
#include "mprintf.h"
#include "md5sum.h"
#include "chunks.h"
#include "checkindeb.h"
extern int verbose;
// This file shall include the code to include binaries, i.e.
// create or adopt the chunk of the Packages.gz-file and
// putting it in the various databases.
// should superseed the add_package from main.c for inclusion
// of downloaded packages from main.c
/* things to do with .deb's checkin by hand: (by comparison with apt-ftparchive)
- extract the control file (that's the hard part)
- check for Package, Version, Architecture, Maintainer, Description
- apply overwrite if neccesary (section,priority and perhaps maintainer).
- add Size, MD5sum, Filename, Priority, Section
- remove Status (warning if existant?)
- check for Optional-field and reject then..
*/
#ifndef __MIRRORER_CHECKINDEB_H
#define __MIRRORER_CHECKINDEB_H
#ifndef __MIRRORER_ERROR_H
#include "error.h"
#warning "What's hapening here?"
#endif
#endif
/* This file is part of "mirrorer" (TODO: find better title)
* Copyright (C) 2003 Bernhard R. Link
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <config.h>
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <string.h>
#include <malloc.h>
#include <zlib.h>
#include "error.h"
#include "mprintf.h"
#include "md5sum.h"
#include "chunks.h"
#include "checkindsc.h"
extern int verbose;
// This file shall include the code to include sources, i.e.
// create or adopt the chunk of the Sources.gz-file and
// putting it in the various databases.
// should superseed the add_source from main.c for inclusion
// of downloaded packages from main.c
/* things to do with .dsc's checkin by hand: (by comparison with apt-ftparchive)
Get all from .dsc (search the chunk with
the Source:-field. end the chunk artifical
before the pgp-end-block.(in case someone
missed the newline there))
* check to have source,version,maintainer,
standards-version, files. And also look
at binary,architecture and build*, as
described in policy 5.4
Get overwrite information, ecspecially
the priority(if there is a binaries field,
check the one with the highest) and the section
(...what else...?)
- Rename Source-Field to Package-Field
- add dsc to files-list. (check other files md5sum and size)
- add Directory-field
- Add Priority and Statues
- apply possible maintainer-updates from the overwrite-file
or arbitrary tag changes from the extra-overwrite-file
- keep rest (perhaps sort alphabetical)
*/
#ifndef __MIRRORER_CHECKINDSC_H
#define __MIRRORER_CHECKINDSC_H
#ifndef __MIRRORER_ERROR_H
#include "error.h"
#warning "What's hapening here?"
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment