OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 16-Sep-2003 15:23:00 Branch: HEAD Handle: 2003091614225900 Modified files: openpkg-src/apt apt.patch Log: teach genpkglist to write its index file to target directory (and not parent dir), too Summary: Revision Changes Path 1.7 +28 -26 openpkg-src/apt/apt.patch ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/apt/apt.patch ============================================================================ $ cvs diff -u -r1.6 -r1.7 apt.patch --- openpkg-src/apt/apt.patch 16 Sep 2003 12:57:18 -0000 1.6 +++ openpkg-src/apt/apt.patch 16 Sep 2003 13:22:59 -0000 1.7 @@ -341,32 +341,6 @@ if (Gen.MergeFileProvides(Parser) == false) return _error->Error(_("Problem with MergeFileProvides %s"), PackageFile.c_str()); ---- tools/genpkglist.cc.orig 2003-06-10 16:14:47.000000000 +0200 -+++ tools/genpkglist.cc 2003-09-16 11:05:22.000000000 +0200 -@@ -544,9 +544,9 @@ - } - } - pkglist_path = string(rpmsdir); -- rpmsdir = rpmsdir + "/RPMS." + string(op_suf); -+ rpmsdir = rpmsdir + "/" + string(op_suf); - -- string dirtag = "RPMS." + string(op_suf); -+ string dirtag = string(op_suf); - - entry_no = scandir(rpmsdir.c_str(), &dirEntries, selectDirent, alphasort); - if (entry_no < 0) { -@@ -558,9 +558,9 @@ - chdir(rpmsdir.c_str()); - - if (pkgListSuffix != NULL) -- pkglist_path = pkglist_path + "/base/pkglist." + pkgListSuffix; -+ pkglist_path = pkglist_path + "/00INDEX.apt-pkglist." + pkgListSuffix; - else -- pkglist_path = pkglist_path + "/base/pkglist." + op_suf; -+ pkglist_path = pkglist_path + "/00INDEX.apt-pkglist." + op_suf; - - - if (pkgListAppend == true && FileExists(pkglist_path)) { --- apt-pkg/sourcelist.cc.orig 2003-09-16 12:02:35.000000000 +0200 +++ apt-pkg/sourcelist.cc 2003-09-16 12:05:04.000000000 +0200 @@ -102,7 +102,7 @@ @@ -541,3 +515,31 @@ if (srcListAppend == true && FileExists(buf)) { outfd = fdOpen(buf, O_WRONLY|O_APPEND, 0644); +--- tools/genpkglist.cc.orig 2003-09-16 15:15:42.000000000 +0200 ++++ tools/genpkglist.cc 2003-09-16 15:18:39.000000000 +0200 +@@ -543,10 +543,10 @@ + rpmsdir = string(op_dir); + } + } +- pkglist_path = string(rpmsdir); +- rpmsdir = rpmsdir + "/RPMS." + string(op_suf); ++ pkglist_path = rpmsdir + "/" + string(op_suf); ++ rpmsdir = rpmsdir + "/" + string(op_suf); + +- string dirtag = "RPMS." + string(op_suf); ++ string dirtag = string(op_suf); + + entry_no = scandir(rpmsdir.c_str(), &dirEntries, selectDirent, alphasort); + if (entry_no < 0) { +@@ -558,9 +558,9 @@ + chdir(rpmsdir.c_str()); + + if (pkgListSuffix != NULL) +- pkglist_path = pkglist_path + "/base/pkglist." + pkgListSuffix; ++ pkglist_path = pkglist_path + "/00INDEX.apt-pkglist." + pkgListSuffix; + else +- pkglist_path = pkglist_path + "/base/pkglist." + op_suf; ++ pkglist_path = pkglist_path + "/00INDEX.apt-pkglist." + op_suf; + + + if (pkgListAppend == true && FileExists(pkglist_path)) { @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]