// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-ftparchive.cc,v 1.10 2003/12/26 20:50:01 mdz Exp $
+// $Id: apt-ftparchive.cc,v 1.12 2004/01/02 21:48:13 mdz Exp $
/* ######################################################################
apt-scanpackages - Efficient work-alike for dpkg-scanpackages
"Commands: packages binarypath [overridefile [pathprefix]]\n"
" sources srcpath [overridefile [pathprefix]]\n"
" contents path\n"
+ " release path\n"
" generate config [groups]\n"
" clean config\n"
"\n"
// ---------------------------------------------------------------------
bool SimpleGenRelease(CommandLine &CmdL)
{
+ if (CmdL.FileSize() < 2)
+ return ShowHelp(CmdL);
+
+ string Dir = CmdL.FileList[1];
+
ReleaseWriter Release("");
+ Release.DirStrip = Dir;
+
if (_error->PendingError() == true)
return false;
- if (Release.RecursiveScan(CmdL.FileList[1]) == false)
+ if (Release.RecursiveScan(Dir) == false)
return false;
Release.Finish();