mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
make-version.py: when _darcs doesn't exist, make the warning less scary-looking
This commit is contained in:
parent
068de695ef
commit
d1e07daeee
@ -64,6 +64,12 @@ def write_version_py(verstr, outfname):
|
||||
|
||||
def update(pkgname, verfilename):
|
||||
rc = -1
|
||||
if not os.path.isdir("_darcs"):
|
||||
if os.path.exists(verfilename):
|
||||
print "No _darcs directory, and %s already exists, so leaving it alone." % (verfilename,)
|
||||
return 0
|
||||
print "No _darcs directory, no %s, so version is unknown." % (verfilename,)
|
||||
return 1
|
||||
cmd = ["darcs", "changes", "--from-tag=^%s" % (pkgname,), "--xml-output"]
|
||||
try:
|
||||
p = Popen(cmd, stdout=PIPE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user