|
|
@@ -76,74 +76,6 @@ Index: apt-pkg/rpm/rpmhandler.h
|
|
|
#include <rpm/rpmlib.h>
|
|
|
#include <rpm/rpmmacro.h>
|
|
|
|
|
|
-Index: apt-pkg/rpm/rpmindexfile.cc
|
|
|
---- apt-pkg/rpm/rpmindexfile.cc.orig 2003-11-24 17:58:58.000000000 +0100
|
|
|
-+++ apt-pkg/rpm/rpmindexfile.cc 2003-11-28 23:01:52.000000000 +0100
|
|
|
-@@ -58,7 +58,7 @@
|
|
|
- Res = URI;
|
|
|
- }
|
|
|
- else
|
|
|
-- Res = URI + Dist + "/base/";
|
|
|
-+ Res = URI + Dist + "/";
|
|
|
-
|
|
|
- Res += Type;
|
|
|
-
|
|
|
-@@ -145,7 +145,7 @@
|
|
|
- Res = URI;
|
|
|
- }
|
|
|
- else
|
|
|
-- Res = URI + Dist + "/base/";
|
|
|
-+ Res = URI + Dist + "/";
|
|
|
-
|
|
|
- Res += Type + '.' + Section;
|
|
|
-
|
|
|
-@@ -277,8 +277,8 @@
|
|
|
- if (Repository->IsAuthenticated() == true &&
|
|
|
- Repository->HasRelease() == false)
|
|
|
- return true;
|
|
|
-- new pkgAcqIndex(Owner,Repository,IndexURI("srclist"),Info("srclist"),
|
|
|
-- "srclist");
|
|
|
-+ new pkgAcqIndex(Owner,Repository,IndexURI("00INDEX.apt-srclist"),Info("00INDEX.apt-srclist"),
|
|
|
-+ "00INDEX.apt-srclist");
|
|
|
- return true;
|
|
|
- }
|
|
|
- /*}}}*/
|
|
|
-@@ -347,10 +347,10 @@
|
|
|
- if (Repository->IsAuthenticated() == true &&
|
|
|
- Repository->HasRelease() == false)
|
|
|
- return true;
|
|
|
-- new pkgAcqIndex(Owner,Repository,IndexURI("pkglist"),Info("pkglist"),
|
|
|
-- "pkglist");
|
|
|
-- new pkgAcqIndexRel(Owner,Repository,IndexURI("release"),Info("release"),
|
|
|
-- "release");
|
|
|
-+ new pkgAcqIndex(Owner,Repository,IndexURI("00INDEX.apt-pkglist"),Info("00INDEX.apt-pkglist"),
|
|
|
-+ "00INDEX.apt-pkglist");
|
|
|
-+ new pkgAcqIndexRel(Owner,Repository,IndexURI("00INDEX.apt-release"),Info("00INDEX.apt-release"),
|
|
|
-+ "00INDEX.apt-release");
|
|
|
- return true;
|
|
|
- }
|
|
|
- /*}}}*/
|
|
|
-@@ -424,7 +424,7 @@
|
|
|
- return _error->Error(_("Problem opening %s"),PackageFile.c_str());
|
|
|
- }
|
|
|
- // We call SubProgress with Size(), since we won't call SelectFile() here.
|
|
|
-- Prog.SubProgress(Size(),Info("pkglist"));
|
|
|
-+ Prog.SubProgress(Size(),Info("00INDEX.apt-pkglist"));
|
|
|
- if (Gen.MergeFileProvides(Parser) == false)
|
|
|
- return _error->Error(_("Problem with MergeFileProvides %s"),
|
|
|
- PackageFile.c_str());
|
|
|
-Index: apt-pkg/rpm/rpmindexfile.h
|
|
|
---- apt-pkg/rpm/rpmindexfile.h.orig 2003-11-24 17:58:58.000000000 +0100
|
|
|
-+++ apt-pkg/rpm/rpmindexfile.h 2003-11-28 23:01:52.000000000 +0100
|
|
|
-@@ -140,7 +140,7 @@
|
|
|
- {
|
|
|
- protected:
|
|
|
-
|
|
|
-- virtual string MainType() const {return "srclist";}
|
|
|
-+ virtual string MainType() const {return "00INDEX.apt-srclist";}
|
|
|
-
|
|
|
- public:
|
|
|
-
|
|
|
Index: apt-pkg/rpm/rpmpackagedata.cc
|
|
|
--- apt-pkg/rpm/rpmpackagedata.cc.orig 2003-11-24 17:58:55.000000000 +0100
|
|
|
+++ apt-pkg/rpm/rpmpackagedata.cc 2003-11-28 23:01:52.000000000 +0100
|
|
|
@@ -473,32 +405,6 @@ Index: tools/genpkglist.cc
|
|
|
int (* cmp)(const void *, const void *))
|
|
|
|
|
|
{
|
|
|
-@@ -544,10 +544,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) {
|
|
|
-@@ -559,9 +559,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)) {
|
|
|
Index: tools/gensrclist.cc
|
|
|
--- tools/gensrclist.cc.orig 2003-11-24 17:58:34.000000000 +0100
|
|
|
+++ tools/gensrclist.cc 2003-11-28 23:01:52.000000000 +0100
|
|
|
@@ -605,28 +511,3 @@ Index: tools/gensrclist.cc
|
|
|
int main(int argc, char ** argv)
|
|
|
{
|
|
|
char buf[300];
|
|
|
-@@ -199,10 +282,10 @@
|
|
|
- } else
|
|
|
- strcpy(buf, arg_dir);
|
|
|
-
|
|
|
-- strcat(buf, "/SRPMS.");
|
|
|
-+ strcat(buf, "/");
|
|
|
- strcat(buf, arg_suffix);
|
|
|
-
|
|
|
-- srpmdir = "SRPMS." + string(arg_suffix);
|
|
|
-+ srpmdir = string(arg_suffix);
|
|
|
- #ifdef OLD_FLATSCHEME
|
|
|
- if (flatStructure) {
|
|
|
- // add the last component of the directory to srpmdir
|
|
|
-@@ -234,9 +317,9 @@
|
|
|
- chdir(buf);
|
|
|
-
|
|
|
- if (srcListSuffix != NULL)
|
|
|
-- sprintf(buf, "%s/srclist.%s", cwd, srcListSuffix);
|
|
|
-+ sprintf(buf, "00INDEX.apt-srclist.%s", srcListSuffix);
|
|
|
- else
|
|
|
-- sprintf(buf, "%s/srclist.%s", cwd, arg_suffix);
|
|
|
-+ sprintf(buf, "00INDEX.apt-srclist.%s", arg_suffix);
|
|
|
-
|
|
|
- if (srcListAppend == true && FileExists(buf)) {
|
|
|
- outfd = fdOpen(buf, O_WRONLY|O_APPEND, 0644);
|