]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debmetaindex.cc
Strip trailing commas for created signed-by fingerprint lists
[apt.git] / apt-pkg / deb / debmetaindex.cc
index ead07a479437e41d5cb81b3ad25b4b4f95d5a012..aad7df735e188d23ccdbfb8494b972ac322c5f5b 100644 (file)
@@ -687,6 +687,8 @@ bool debReleaseIndex::SetSignedBy(std::string const &pSignedBy)
         std::stringstream os;
         std::copy(fingers.begin(), fingers.end(), std::ostream_iterator<std::string>(os, ","));
         SignedBy = os.str();
+        while (SignedBy[SignedBy.size() - 1] == ',')
+           SignedBy.resize(SignedBy.size() - 1);
       }
    }
    else if (SignedBy != pSignedBy)