[applied] tools-utils: Add missing comment

Message ID 87pljzjc8d.fsf@redhat.com
State New
Headers
Series [applied] tools-utils: Add missing comment |

Commit Message

Dodji Seketeli Feb. 3, 2025, 3:10 p.m. UTC
  Hello,

	* src/abg-tools-utils.cc (guess_file_type): Add comment for RPM
	format magic number.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to the mainline.
---
 src/abg-tools-utils.cc | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc
index 77e4bfd0..0de9b797 100644
--- a/src/abg-tools-utils.cc
+++ b/src/abg-tools-utils.cc
@@ -1649,6 +1649,8 @@  guess_file_type(istream& in)
       && buf[11] == ' ')
     return FILE_TYPE_XML_CORPUS;
 
+  // Detect RPM format.  Documented at
+  // http://ftp.rpm.org/max-rpm/s1-rpm-file-format-rpm-file-format.html.
   if ((unsigned char) buf[0]    == 0xed
       && (unsigned char) buf[1] == 0xab
       && (unsigned char) buf[2] == 0xee