SOURCES: rpm-lzma_w7.patch (NEW) - added lzma_w7 patch - first attempt to m...

blues blues at pld-linux.org
Sun Nov 23 16:20:28 CET 2008


Author: blues                        Date: Sun Nov 23 15:20:28 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added lzma_w7 patch - first attempt to make lzma usable on non-high-end
  machines

---- Files affected:
SOURCES:
   rpm-lzma_w7.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpm-lzma_w7.patch
diff -u /dev/null SOURCES/rpm-lzma_w7.patch:1.1
--- /dev/null	Sun Nov 23 16:20:29 2008
+++ SOURCES/rpm-lzma_w7.patch	Sun Nov 23 16:20:23 2008
@@ -0,0 +1,26 @@
+--- rpm-4.5/lib/psm.c~	2008-11-22 17:18:39.325237949 +0100
++++ rpm-4.5/lib/psm.c	2008-11-22 17:30:16.807430141 +0100
+@@ -2308,13 +2308,16 @@
+ 	    replace_lzma_with_gzip(psm->oh);
+ 	}
+ 	*t = '\0';
+-	t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w9" : "r"));
+-	if (!strcmp(payload_compressor, "gzip"))
+-	    t = stpcpy(t, ".gzdio");
+-	if (!strcmp(payload_compressor, "bzip2"))
+-	    t = stpcpy(t, ".bzdio");
+-	if (!strcmp(payload_compressor, "lzma"))
+-	    t = stpcpy(t, ".lzdio");
++	if (!strcmp(payload_compressor, "lzma")) {
++		t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w7" : "r"));
++		t = stpcpy(t, ".lzdio");
++	} else {
++		t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w9" : "r"));
++		if (!strcmp(payload_compressor, "gzip"))
++			t = stpcpy(t, ".gzdio");
++		if (!strcmp(payload_compressor, "bzip2"))
++			t = stpcpy(t, ".bzdio");
++	}
+ 
+ 	/*@-branchstate@*/
+ 	if (!hge(fi->h, RPMTAG_PAYLOADFORMAT, NULL,
================================================================


More information about the pld-cvs-commit mailing list