Fix a regression in the previous release that caused some generated resources to be not included in the released source tarball

This commit is contained in:
Kovid Goyal 2023-03-15 09:37:06 +05:30
parent 102427ddb8
commit f21f1b227b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -303,7 +303,7 @@ class Sdist(Command):
os.mkdir(tdir)
subprocess.check_call('git archive HEAD | tar -x -C ' + tdir, shell=True)
for x in open('.gitignore').readlines():
if not x.startswith('resources/'):
if not x.startswith('/resources/'):
continue
p = x.strip().replace('/', os.sep)
for p in glob.glob(p):