From 5ed2fcc348ab0adf9a79a7abd4165be6a08c8fd0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 13 Jul 2007 17:41:53 +0000 Subject: [PATCH] We got initial comments right. --- sccs2rcs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sccs2rcs b/sccs2rcs index 80393e0..4de7cbb 100755 --- a/sccs2rcs +++ b/sccs2rcs @@ -185,7 +185,7 @@ if __name__ == '__main__': die("ill-formed line '%s' in comments file" % line) if filename in initstrings: die("duplicate filename in initstrings") - initstrings[filename] = initstrings + initstrings[filename] = initstring.strip() # If the CSSC package is installed, the SCCS commands might be here. # This assumption works under Debian/Ubuntu and will be harmless elsewhere. @@ -273,9 +273,9 @@ if __name__ == '__main__': # check file into RCS if firsttime: firsttime = False - if filename in initstrings: - cmd = 'ci -f -r%s -d"%s" -w%s -t-%s %s' \ - % (rev, rcsdate, author, initstrings[filename], stem) + if stem in initstrings: + cmd = 'ci -f -r%s -d"%s" -w%s -t-"%s" %s' \ + % (rev, rcsdate, author, initstrings[stem], stem) else: if initstrings: warn("no description for %s in comments file" % stem) -- 2.43.0