projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
close server if parsing of header field failed
[apt.git]
/
apt-pkg
/
srcrecords.h
diff --git
a/apt-pkg/srcrecords.h
b/apt-pkg/srcrecords.h
index 71173c95354b8a4c757c0df688d3ce9fc37f6c99..9cc58c5b4b28fc00df2aa944cbc9f4b8281c9bf3 100644
(file)
--- a/
apt-pkg/srcrecords.h
+++ b/
apt-pkg/srcrecords.h
@@
-33,8
+33,8
@@
APT_IGNORE_DEPRECATED_PUSH
// Describes a single file
struct File
{
// Describes a single file
struct File
{
- APT_DEPRECATED std::string MD5Hash;
- APT_DEPRECATED unsigned long Size;
+ APT_DEPRECATED
_MSG("Use Hashes member instead of hardcoded hash algorithm")
std::string MD5Hash;
+ APT_DEPRECATED
_MSG("Use FileSize member instead")
unsigned long Size;
std::string Path;
std::string Type;
};
std::string Path;
std::string Type;
};
@@
-48,7
+48,7
@@
APT_IGNORE_DEPRECATED_POP
// Abstract parser for each source record
class Parser
{
// Abstract parser for each source record
class Parser
{
- void *d;
+ void *
const
d;
protected:
const pkgIndexFile *iIndex;
protected:
const pkgIndexFile *iIndex;
@@
-93,7
+93,7
@@
APT_IGNORE_DEPRECATED_POP
private:
/** \brief dpointer placeholder (for later in case we need it) */
private:
/** \brief dpointer placeholder (for later in case we need it) */
- void *d;
+ void *
const
d;
// The list of files and the current parser pointer
std::vector<Parser*> Files;
// The list of files and the current parser pointer
std::vector<Parser*> Files;