15 #include <rpm/rpmcli.h>
16 #include <rpm/rpmlog.h>
59 #define WARNINGMAILPATH "/var/log/YaST2/"
60 #define FILEFORBACKUPFILES "YaSTBackupModifiedFiles"
61 #define MAXRPMMESSAGELINES 10000
63 #define WORKAROUNDRPMPWDBUG
65 #undef ZYPP_BASE_LOGGER_LOGGROUP
66 #define ZYPP_BASE_LOGGER_LOGGROUP "librpmDb"
70 namespace zypp_readonly_hack
78 static bool val = [](){
79 const char * env = getenv(
"ZYPP_RPM_DEBUG");
94 #if 1 // No more need to escape whitespace since rpm-4.4.2.3
95 const char* quoteInFilename_m =
"\'\"";
97 const char* quoteInFilename_m =
" \t\'\"";
99 inline std::string rpmQuoteFilename(
const Pathname & path_r )
101 std::string path( path_r.
asString() );
103 pos != std::string::npos;
104 pos = path.find_first_of( quoteInFilename_m, pos ) )
106 path.insert( pos,
"\\" );
119 #if defined(WORKAROUNDRPMPWDBUG)
123 AutoDispose<char*> cwd( ::get_current_dir_name(), ::free );
126 WAR <<
"Can't get cwd!" << endl;
147 MIL <<
"trusted key added to zypp Keyring. Importing..." << endl;
148 _rpmdb.importPubkey( key );
153 MIL <<
"Trusted key removed from zypp Keyring. Removing..." << endl;
154 _rpmdb.removePubkey( key );
162 unsigned diffFiles(
const std::string file1,
const std::string file2, std::string& out,
int maxlines)
183 if (maxlines<0?
true:count<maxlines)
209 #define FAILIFNOTINITIALIZED if( ! initialized() ) { ZYPP_THROW(RpmDbNotOpenException()); }
220 : _backuppath (
"/var/adm/backup")
221 , _packagebackups(false)
228 setenv(
"RPM_IgnoreFailedSymlinks",
"1", 1 );
240 MIL <<
"~RpmDb()" << endl;
243 MIL <<
"~RpmDb() end" << endl;
269 bool quickinit( root_r.
empty() );
271 if ( root_r.
empty() )
279 if ( dbPath_r !=
"/var/lib/rpm" && !
PathInfo( root_r/
"/var/lib/rpm" ).isExist() )
281 WAR <<
"Inject missing /var/lib/rpm compat symlink to " << dbPath_r << endl;
295 if ( root_r ==
_root ) {
303 MIL <<
"Calling initDatabase: " <<
stringPath( root_r, dbPath_r )
304 << ( doRebuild_r ?
" (rebuilddb)" :
"" )
305 << ( quickinit ?
" (quickinit)" :
"" ) << endl;
314 MIL <<
"QUICK initDatabase (no systemRoot set)" << endl;
336 MIL <<
"Synchronizing keys with zypp keyring" << endl;
345 MIL <<
"InitDatabase: " << *
this << endl;
361 MIL <<
"Calling closeDatabase: " << *
this << endl;
373 MIL <<
"closeDatabase: " << *
this << endl;
403 MIL <<
"RpmDb::rebuildDatabase" << *
this << endl;
417 opts.push_back(
"--rebuilddb");
418 opts.push_back(
"-vv");
428 tics.
range( hdrTotal );
439 static const std::string debugPrefix {
"D:" };
440 static const std::string progressPrefix {
"D: read h#" };
441 static const std::string ignoreSuffix {
"digest: OK" };
456 WAR <<
"User requested abort." << endl;
480 void computeKeyRingSync( std::set<Edition> & rpmKeys_r, std::list<PublicKeyData> & zyppKeys_r )
491 void updateIf(
const Edition & rpmKey_r )
493 std::string keyRelease( rpmKey_r.
release() );
494 int comp = _release.compare( keyRelease );
498 _release.swap( keyRelease );
499 _inRpmKeys = &rpmKey_r;
500 _inZyppKeys =
nullptr;
501 if ( !keyRelease.empty() )
502 DBG <<
"Old key in Z: gpg-pubkey-" << rpmKey_r.
version() <<
"-" << keyRelease << endl;
504 else if ( comp == 0 )
508 _inRpmKeys = &rpmKey_r;
512 DBG <<
"Old key in R: gpg-pubkey-" << rpmKey_r.
version() <<
"-" << keyRelease << endl;
515 void updateIf(
const PublicKeyData & zyppKey_r )
517 std::string keyRelease( zyppKey_r.gpgPubkeyRelease() );
518 int comp = _release.compare( keyRelease );
522 _release.swap( keyRelease );
523 _inRpmKeys =
nullptr;
524 _inZyppKeys = &zyppKey_r;
525 if ( !keyRelease.empty() )
526 DBG <<
"Old key in R: gpg-pubkey-" << zyppKey_r.gpgPubkeyVersion() <<
"-" << keyRelease << endl;
528 else if ( comp == 0 )
532 _inZyppKeys = &zyppKey_r;
536 DBG <<
"Old key in Z: gpg-pubkey-" << zyppKey_r.gpgPubkeyVersion() <<
"-" << keyRelease << endl;
539 std::string _release;
540 const Edition * _inRpmKeys;
541 const PublicKeyData * _inZyppKeys;
546 std::map<std::string,Key> _keymap;
548 for_( it, rpmKeys_r.begin(), rpmKeys_r.end() )
550 _keymap[(*it).version()].updateIf( *it );
553 for_( it, zyppKeys_r.begin(), zyppKeys_r.end() )
555 _keymap[(*it).gpgPubkeyVersion()].updateIf( *it );
559 std::set<Edition> rpmKeys;
560 std::list<PublicKeyData> zyppKeys;
561 for_( it, _keymap.begin(), _keymap.end() )
563 DBG <<
"gpg-pubkey-" << (*it).first <<
"-" << (*it).second._release <<
" "
564 << ( (*it).second._inRpmKeys ?
"R" :
"_" )
565 << ( (*it).second._inZyppKeys ?
"Z" :
"_" ) << endl;
566 if ( ! (*it).second._inRpmKeys )
568 zyppKeys.push_back( *(*it).second._inZyppKeys );
570 if ( ! (*it).second._inZyppKeys )
572 rpmKeys.insert( *(*it).second._inRpmKeys );
575 rpmKeys_r.swap( rpmKeys );
576 zyppKeys_r.swap( zyppKeys );
583 MIL <<
"Going to sync trusted keys..." << endl;
585 std::list<PublicKeyData> zyppKeys( getZYpp()->keyRing()->trustedPublicKeyData() );
597 MIL <<
"Removing excess keys in zypp trusted keyring" << std::endl;
603 if ( ! rpmKeys.count( keyData.gpgPubkeyEdition() ) )
605 DBG <<
"Excess key in Z to delete: gpg-pubkey-" << keyData.gpgPubkeyEdition() << endl;
606 getZYpp()->keyRing()->deleteKey( keyData.id(),
true );
607 if ( !dirty ) dirty =
true;
611 zyppKeys = getZYpp()->keyRing()->trustedPublicKeyData();
614 computeKeyRingSync( rpmKeys, zyppKeys );
615 MIL << (mode_r &
SYNC_TO_KEYRING ?
"" :
"(skip) ") <<
"Rpm keys to export into zypp trusted keyring: " << rpmKeys.size() << endl;
616 MIL << (mode_r &
SYNC_FROM_KEYRING ?
"" :
"(skip) ") <<
"Zypp trusted keys to import into rpm database: " << zyppKeys.size() << endl;
622 MIL <<
"Exporting rpm keyring into zypp trusted keyring" <<endl;
627 TmpFile tmpfile( getZYpp()->tmpPath() );
629 std::ofstream tmpos( tmpfile.
path().
c_str() );
630 for_( it, rpmKeys.begin(), rpmKeys.end() )
634 getData(
"gpg-pubkey", *it, result );
635 tmpos << result->tag_description() << endl;
640 getZYpp()->keyRing()->multiKeyImport( tmpfile.
path(),
true );
644 std::set<Edition> missingKeys;
645 for (
const Edition & key : rpmKeys )
647 if ( getZYpp()->keyRing()->isKeyTrusted( key.version() ) )
649 ERR <<
"Could not import key:" <<
str::Format(
"gpg-pubkey-%s") % key <<
" into zypp keyring (V3 key?)" << endl;
650 missingKeys.insert( key );
652 if ( ! missingKeys.empty() )
658 ERR <<
"Could not import keys into zypp keyring: " << endl;
666 MIL <<
"Importing zypp trusted keyring" << std::endl;
667 for_( it, zyppKeys.begin(), zyppKeys.end() )
671 importPubkey( getZYpp()->keyRing()->exportTrustedPublicKey( *it ) );
679 MIL <<
"Trusted keys synced." << endl;
701 WAR <<
"Key " << pubkey_r <<
" can not be imported. (READONLY MODE)" << endl;
708 bool hasOldkeys =
false;
710 for_( it, rpmKeys.begin(), rpmKeys.end() )
719 MIL <<
"Key " << pubkey_r <<
" is already in the rpm trusted keyring. (skip import)" << endl;
723 if ( keyEd.
version() != (*it).version() )
726 if ( keyEd.
release() < (*it).release() )
728 MIL <<
"Key " << pubkey_r <<
" is older than one in the rpm trusted keyring. (skip import)" << endl;
736 MIL <<
"Key " << pubkey_r <<
" will be imported into the rpm trusted keyring." << (hasOldkeys?
"(update)":
"(new)") << endl;
742 std::string keyName(
"gpg-pubkey-" + keyEd.
version() );
744 opts.push_back (
"-e" );
745 opts.push_back (
"--allmatches" );
746 opts.push_back (
"--" );
747 opts.push_back ( keyName.c_str() );
758 ERR <<
"Failed to remove key " << pubkey_r <<
" from RPM trusted keyring (ignored)" << endl;
762 MIL <<
"Key " << pubkey_r <<
" has been removed from RPM trusted keyring" << endl;
768 opts.push_back (
"--import" );
769 opts.push_back (
"--" );
771 opts.push_back ( pubkeypath.c_str() );
775 std::vector<std::string> excplines;
781 excplines.push_back( std::move(line) );
797 MIL <<
"Key " << pubkey_r <<
" imported in rpm trusted keyring." << endl;
814 std::set<Edition>::const_iterator found_edition = rpm_keys.end();
817 for_( it, rpm_keys.begin(), rpm_keys.end() )
819 if ( (*it).version() == pubkeyVersion )
827 if (found_edition == rpm_keys.end())
829 WAR <<
"Key " << pubkey_r.
id() <<
" is not in rpm db" << endl;
833 std::string rpm_name(
"gpg-pubkey-" + found_edition->asString());
836 opts.push_back (
"-e" );
837 opts.push_back (
"--" );
838 opts.push_back ( rpm_name.c_str() );
842 std::vector<std::string> excplines;
848 excplines.push_back( std::move(line) );
864 MIL <<
"Key " << pubkey_r <<
" has been removed from RPM trusted keyring" << endl;
876 std::list<PublicKey> ret;
879 for ( it.
findByName(
"gpg-pubkey" ); *it; ++it )
881 Edition edition = it->tag_edition();
886 getData(
"gpg-pubkey", edition, result );
887 TmpFile file(getZYpp()->tmpPath());
893 os << result->tag_description();
902 catch ( std::exception & e )
904 ERR <<
"Could not dump key " << edition.
asString() <<
" in tmp file " << file.
path() << endl;
914 std::set<Edition> ret;
917 for ( it.
findByName(
"gpg-pubkey" ); *it; ++it )
919 Edition edition = it->tag_edition();
921 ret.insert( edition );
938 std::list<FileInfo> result;
965 bool RpmDb::hasFile(
const std::string & file_r,
const std::string & name_r )
const
975 res = (it->tag_name() == name_r);
996 return it->tag_name();
1110 struct RpmlogCapture :
public std::string
1113 { rpmlog()._cap =
this; }
1116 { rpmlog()._cap =
nullptr; }
1124 rpmlogSetCallback( rpmLogCB,
this );
1125 rpmSetVerbosity( RPMLOG_INFO );
1126 _f = ::fopen(
"/dev/null",
"w");
1127 rpmlogSetFile(
_f );
1131 {
if (
_f ) ::fclose(
_f ); }
1133 static int rpmLogCB( rpmlogRec rec_r, rpmlogCallbackData data_r )
1134 {
return reinterpret_cast<Rpmlog*
>(data_r)->rpmLog( rec_r ); }
1136 int rpmLog( rpmlogRec rec_r )
1138 if (
_cap ) (*_cap) += rpmlogRecMessage( rec_r );
1139 return RPMLOG_DEFAULT;
1146 static Rpmlog & rpmlog()
1147 {
static Rpmlog _rpmlog;
return _rpmlog; }
1152 bool requireGPGSig_r,
1153 RpmDb::CheckPackageDetail & detail_r )
1156 if ( ! file.isFile() )
1158 ERR <<
"Not a file: " << file << endl;
1162 FD_t fd = ::Fopen( file.asString().c_str(),
"r.ufdio" );
1163 if ( fd == 0 || ::Ferror(fd) )
1165 ERR <<
"Can't open file for reading: " << file <<
" (" << ::Fstrerror(fd) <<
")" << endl;
1170 rpmts ts = ::rpmtsCreate();
1171 ::rpmtsSetRootDir( ts, root_r.
c_str() );
1172 ::rpmtsSetVSFlags( ts, RPMVSF_DEFAULT );
1174 rpmQVKArguments_s qva;
1175 memset( &qva, 0,
sizeof(rpmQVKArguments_s) );
1176 #ifdef HAVE_NO_RPMTSSETVFYFLAGS
1179 qva.qva_flags = (VERIFY_DIGEST|VERIFY_SIGNATURE);
1181 ::rpmtsSetVfyFlags( ts, RPMVSF_DEFAULT );
1183 RpmlogCapture vresult;
1184 LocaleGuard guard( LC_ALL,
"C" );
1185 int res = ::rpmVerifySignatures( &qva, ts, fd, path_r.
basename().c_str() );
1198 std::vector<std::string> lines;
1199 str::split( vresult, std::back_inserter(lines),
"\n" );
1200 unsigned count[7] = { 0, 0, 0, 0, 0, 0, 0 };
1202 for (
unsigned i = 1; i < lines.size(); ++i )
1204 std::string & line( lines[i] );
1206 if ( line.find(
": OK" ) != std::string::npos )
1209 if ( line.find(
"Signature, key ID" ) == std::string::npos )
1212 else if ( line.find(
": NOKEY" ) != std::string::npos )
1214 else if ( line.find(
": BAD" ) != std::string::npos )
1216 else if ( line.find(
": UNKNOWN" ) != std::string::npos )
1218 else if ( line.find(
": NOTRUSTED" ) != std::string::npos )
1220 else if ( line.find(
": NOTFOUND" ) != std::string::npos )
1224 detail_r.push_back( RpmDb::CheckPackageDetail::value_type( lineres, std::move(line) ) );
1245 detail_r.push_back( RpmDb::CheckPackageDetail::value_type(
RpmDb::CHK_NOSIG, std::string(
" ")+
_(
"Package is not signed!") ) );
1246 if ( requireGPGSig_r )
1253 WAR << path_r <<
" (" << requireGPGSig_r <<
" -> " << ret <<
")" << endl;
1266 {
return doCheckPackageSig( path_r,
root(),
false, detail_r ); }
1272 {
return doCheckPackageSig( path_r,
root(),
true, detail_r ); }
1287 opts.push_back (
"-V");
1288 opts.push_back (
"--nodeps");
1289 opts.push_back (
"--noscripts");
1290 opts.push_back (
"--nomd5");
1291 opts.push_back (
"--");
1292 opts.push_back (packageName.c_str());
1313 if (line.length() > 12 &&
1314 (line[0] ==
'S' || line[0] ==
's' ||
1315 (line[0] ==
'.' && line[7] ==
'T')))
1318 std::string filename;
1320 filename.assign(line, 11, line.length() - 11);
1361 #if defined(WORKAROUNDRPMPWDBUG)
1362 args.push_back(
"#/");
1364 args.push_back(
"rpm");
1365 args.push_back(
"--root");
1367 args.push_back(
"--dbpath");
1370 args.push_back(
"-vv");
1371 const char* argv[args.size() + opts.size() + 1];
1373 const char** p = argv;
1374 p =
copy (args.begin (), args.end (), p);
1375 p =
copy (opts.begin (), opts.end (), p);
1405 const auto &readResult =
io::receiveUpto( inputfile,
'\n', 5 * 1000,
false );
1406 switch ( readResult.first ) {
1412 line += readResult.second;
1416 line += readResult.second;
1417 if ( line.size() && line.back() ==
'\n')
1422 line += readResult.second;
1424 if ( line.size() && line.back() ==
'\n')
1428 L_DBG(
"RPM_DEBUG") << line << endl;
1472 void RpmDb::processConfigFiles(
const std::string& line,
const std::string& name,
const char* typemsg,
const char* difffailmsg,
const char* diffgenmsg)
1474 std::string msg = line.substr(9);
1477 std::string file1s, file2s;
1481 pos1 = msg.find (typemsg);
1484 if ( pos1 == std::string::npos )
1487 pos2 = pos1 + strlen (typemsg);
1489 if (pos2 >= msg.length() )
1492 file1 = msg.substr (0, pos1);
1493 file2 = msg.substr (pos2);
1500 file1 =
_root + file1;
1501 file2 =
_root + file2;
1511 ERR <<
"Could not create " << file.
asString() << endl;
1515 std::ofstream notify(file.
asString().c_str(), std::ios::out|std::ios::app);
1518 ERR <<
"Could not open " << file << endl;
1524 notify <<
str::form(
_(
"Changed configuration files for %s:"), name.c_str()) << endl;
1527 ERR <<
"diff failed" << endl;
1529 file1s.c_str(), file2s.c_str()) << endl;
1534 file1s.c_str(), file2s.c_str()) << endl;
1539 if (out.substr(0,4) ==
"--- ")
1541 out.replace(4, file1.
asString().length(), file1s);
1544 if (pos != std::string::npos)
1546 out.replace(pos+5, file2.
asString().length(), file2s);
1549 notify << out << endl;
1552 notify.open(
"/var/lib/update-messages/yast2-packagemanager.rpmdb.configfiles");
1557 WAR <<
"rpm created " << file2 <<
" but it is not different from " << file2 << endl;
1588 report->finish( excpt_r );
1604 MIL <<
"RpmDb::installPackage(" << filename <<
"," << flags <<
")" << endl;
1613 ERR <<
"backup of " << filename.
asString() <<
" failed" << endl;
1622 opts.push_back(
"-i");
1624 opts.push_back(
"-U");
1626 opts.push_back(
"--percent");
1627 opts.push_back(
"--noglob");
1631 opts.push_back(
"--ignorearch");
1634 opts.push_back(
"--nodigest");
1636 opts.push_back(
"--nosignature");
1638 opts.push_back (
"--excludedocs");
1640 opts.push_back (
"--noscripts");
1642 opts.push_back (
"--force");
1644 opts.push_back (
"--nodeps");
1646 opts.push_back (
"--ignoresize");
1648 opts.push_back (
"--justdb");
1650 opts.push_back (
"--test");
1652 opts.push_back (
"--noposttrans");
1654 opts.push_back(
"--");
1657 std::string quotedFilename( rpmQuoteFilename( workaroundRpmPwdBug( filename ) ) );
1658 opts.push_back ( quotedFilename.c_str() );
1663 unsigned lineno = 0;
1666 cmdout.
set(
"line", std::cref(line) );
1667 cmdout.
set(
"lineno", lineno );
1671 std::vector<std::string> configwarnings;
1678 sscanf( line.c_str() + 2,
"%d", &percent );
1679 report->progress( percent );
1683 cmdout.
set(
"lineno", lineno );
1684 report->report( cmdout );
1687 if ( line.find(
" scriptlet failed, " ) == std::string::npos )
1691 rpmmsg += line+
'\n';
1694 configwarnings.push_back(line);
1697 rpmmsg +=
"[truncated]\n";
1702 for (std::vector<std::string>::iterator it = configwarnings.begin();
1703 it != configwarnings.end(); ++it)
1707 _(
"rpm saved %s as %s, but it was impossible to determine the difference"),
1709 _(
"rpm saved %s as %s.\nHere are the first 25 lines of difference:\n"));
1712 _(
"rpm created %s as %s, but it was impossible to determine the difference"),
1714 _(
"rpm created %s as %s.\nHere are the first 25 lines of difference:\n"));
1717 if ( rpm_status != 0 )
1722 std::ostringstream sstr;
1723 sstr <<
"rpm output:" << endl << rpmmsg << endl;
1724 historylog.
comment(sstr.str());
1728 else if ( ! rpmmsg.empty() )
1733 std::ostringstream sstr;
1734 sstr <<
"Additional rpm output:" << endl << rpmmsg << endl;
1735 historylog.
comment(sstr.str());
1739 report->finishInfo(
str::form(
"%s:\n%s\n",
_(
"Additional rpm output"), rpmmsg.c_str() ));
1753 +
"-" + package->edition().version()
1754 +
"-" + package->edition().release()
1755 +
"." + package->arch().asString(), flags );
1783 report->finish( excpt_r );
1800 MIL <<
"RpmDb::doRemovePackage(" << name_r <<
"," << flags <<
")" << endl;
1809 ERR <<
"backup of " << name_r <<
" failed" << endl;
1820 opts.push_back(
"-e");
1821 opts.push_back(
"--allmatches");
1824 opts.push_back(
"--noscripts");
1826 opts.push_back(
"--nodeps");
1828 opts.push_back(
"--justdb");
1830 opts.push_back (
"--test");
1833 WAR <<
"IGNORE OPTION: 'rpm -e' does not support '--force'" << endl;
1836 opts.push_back(
"--");
1837 opts.push_back(name_r.c_str());
1842 unsigned lineno = 0;
1845 cmdout.
set(
"line", std::cref(line) );
1846 cmdout.
set(
"lineno", lineno );
1860 cmdout.
set(
"lineno", lineno );
1861 report->report( cmdout );
1864 if ( line.find(
" scriptlet failed, " ) == std::string::npos )
1867 rpmmsg += line+
'\n';
1870 rpmmsg +=
"[truncated]\n";
1874 if ( rpm_status != 0 )
1877 str::form(
"%s remove failed", name_r.c_str()),
true );
1878 std::ostringstream sstr;
1879 sstr <<
"rpm output:" << endl << rpmmsg << endl;
1880 historylog.
comment(sstr.str());
1884 else if ( ! rpmmsg.empty() )
1887 str::form(
"%s removed ok", name_r.c_str()),
true );
1889 std::ostringstream sstr;
1890 sstr <<
"Additional rpm output:" << endl << rpmmsg << endl;
1891 historylog.
comment(sstr.str());
1895 report->finishInfo(
str::form(
"%s:\n%s\n",
_(
"Additional rpm output"), rpmmsg.c_str() ));
1929 INT <<
"_backuppath empty" << endl;
1937 ERR <<
"Error while getting changed files for package " <<
1938 packageName << endl;
1944 DBG <<
"package " << packageName <<
" not changed -> no backup" << endl;
1956 struct tm *currentLocalTime = localtime(&
currentTime);
1958 int date = (currentLocalTime->tm_year + 1900) * 10000
1959 + (currentLocalTime->tm_mon + 1) * 100
1960 + currentLocalTime->tm_mday;
1966 +
str::form(
"%s-%d-%d.tar.gz",packageName.c_str(), date, num);
1969 while (
PathInfo(backupFilename).isExist() && num++ < 1000);
1974 ERR << filestobackupfile.
asString() <<
" already exists and is no file" << endl;
1978 std::ofstream fp ( filestobackupfile.
asString().c_str(), std::ios::out|std::ios::trunc );
1982 ERR <<
"could not open " << filestobackupfile.
asString() << endl;
1986 for (FileList::const_iterator cit =
fileList.begin();
1989 std::string name = *cit;
1990 if ( name[0] ==
'/' )
1993 name = name.substr( 1 );
1995 DBG <<
"saving file "<< name << endl;
2000 const char*
const argv[] =
2006 "--ignore-failed-read",
2010 filestobackupfile.
asString().c_str(),
2026 int ret = tar.
close();
2030 ERR <<
"tar failed: " << tarmsg << endl;
2035 MIL <<
"tar backup ok" << endl;
2056 #define OUTS(E,S) case RpmDb::E: return str << "["<< (unsigned)obj << "-"<< S << "]"; break
2058 OUTS( CHK_OK,
_(
"Signature is OK") );
2060 OUTS( CHK_NOTFOUND,
_(
"Unknown type of signature") );
2062 OUTS( CHK_FAIL,
_(
"Signature does not verify") );
2064 OUTS( CHK_NOTTRUSTED,
_(
"Signature is OK, but key is not trusted") );
2066 OUTS( CHK_NOKEY,
_(
"Signatures public key is not available") );
2068 OUTS( CHK_ERROR,
_(
"File does not exist or signature can't be checked") );
2070 OUTS( CHK_NOSIG,
_(
"File is unsigned") );
2078 for (
const auto & el : obj )
2079 str << el.second << endl;