mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
get_api_url() diagnostics now includes ESTALE.
This commit is contained in:
parent
acbf21f7db
commit
b7328b6adf
@ -156,7 +156,15 @@ class Osc(cmdln.Cmdln):
|
|||||||
return self._str(doc)
|
return self._str(doc)
|
||||||
|
|
||||||
def get_api_url(self):
|
def get_api_url(self):
|
||||||
localdir = os.getcwd()
|
try:
|
||||||
|
localdir = os.getcwd()
|
||||||
|
except Exception, e:
|
||||||
|
## check for Stale NFS file handle: '.'
|
||||||
|
try: os.stat('.')
|
||||||
|
except Exception, ee: e = ee
|
||||||
|
print >>sys.stderr, "os.getcwd() failed: ", e
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if (is_package_dir(localdir) or is_project_dir(localdir)) and not self.options.apiurl:
|
if (is_package_dir(localdir) or is_project_dir(localdir)) and not self.options.apiurl:
|
||||||
return store_read_apiurl(os.curdir)
|
return store_read_apiurl(os.curdir)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user