]>
git.saurik.com Git - apt.git/blob - ftparchive/sources.cc
7 #include <apt-pkg/error.h>
8 #include <apt-pkg/gpgv.h>
12 bool DscExtract::TakeDsc(const void *newData
, unsigned long newSize
)
15 return _error
->Error("DSC data is too large %lu!", newSize
);
22 memcpy(Data
, newData
, newSize
);
28 bool DscExtract::Read(std::string FileName
)
31 if (OpenMaybeClearSignedFile(FileName
, F
) == false)
34 unsigned long long const FSize
= F
.FileSize();
36 return _error
->Error("DSC file '%s' is too large!",FileName
.c_str());
38 if (F
.Read(Data
, FSize
) == false)
42 IsClearSigned
= (FileName
!= F
.Name());