aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-12 10:31:02 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-12 10:31:02 +0000
commit0dd84267e740fd10f46103a5affee01611fcd224 (patch)
tree2afabc69a76b42691a3f98ec87dc5c4f7f736ae7 /lib
parentb105b61017274eec171269b0d0f9cc617f01d423 (diff)
downloadplptools-0dd84267e740fd10f46103a5affee01611fcd224.tar.gz
plptools-0dd84267e740fd10f46103a5affee01611fcd224.tar.bz2
plptools-0dd84267e740fd10f46103a5affee01611fcd224.zip
Load all residual sis files before installing, to make sure we don't
have another version installed already.
Diffstat (limited to 'lib')
-rw-r--r--lib/sisfileheader.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/sisfileheader.cpp b/lib/sisfileheader.cpp
index a6535c8..c816c00 100644
--- a/lib/sisfileheader.cpp
+++ b/lib/sisfileheader.cpp
@@ -127,24 +127,24 @@ SISFileHeader::fillFrom(uint8_t* buf, int* base, off_t len)
m_languagePtr = read32(start + 48);
if (logLevel >= 2)
printf(_("Languages begin at %d\n"), m_languagePtr);
- if (m_languagePtr >= len)
- return SIS_TRUNCATED;
+// if (m_languagePtr >= len)
+// return SIS_TRUNCATED;
m_filesPtr = read32(start + 52);
if (logLevel >= 2)
printf(_("Files begin at %d\n"), m_filesPtr);
- if (m_filesPtr >= len)
- return SIS_TRUNCATED;
+// if (m_filesPtr >= len)
+// return SIS_TRUNCATED;
m_reqPtr = read32(start + 56);
if (logLevel >= 2)
printf(_("Requisites begin at %d\n"), m_reqPtr);
- if (m_reqPtr >= len)
- return SIS_TRUNCATED;
+// if (m_reqPtr >= len)
+// return SIS_TRUNCATED;
m_unknown = read32(start + 60);
m_componentPtr = read32(start + 64);
if (logLevel >= 2)
printf(_("Components begin at %d\n"), m_componentPtr);
- if (m_componentPtr >= len)
- return SIS_TRUNCATED;
+// if (m_componentPtr >= len)
+// return SIS_TRUNCATED;
*base += 68;
return SIS_OK;
}