Muehlenhoff has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/375792 )
Change subject: Fix OS detection
......................................................................
Fix OS detection
On Ubuntu there's an additional ID_LIKE, which is misparsed.
Change-Id: I3cd729f0cde31b7a1db7f16617b76d9830726307
---
M clients/debdeploy-deploy
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/debs/debdeploy
refs/changes/92/375792/1
diff --git a/clients/debdeploy-deploy b/clients/debdeploy-deploy
index 93941fb..b2f181b 100755
--- a/clients/debdeploy-deploy
+++ b/clients/debdeploy-deploy
@@ -77,9 +77,9 @@
return 'invalid'
for line in lines:
- if line.startswith('ID'):
+ if line.startswith('ID='):
os_id = line.split('=')[1].strip().replace('"', '')
- if line.startswith('VERSION_ID'):
+ if line.startswith('VERSION_ID='):
os_version = line.split('=')[1].strip().replace('"', '')
if not os_id:
--
To view, visit https://gerrit.wikimedia.org/r/375792
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3cd729f0cde31b7a1db7f16617b76d9830726307
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/debdeploy
Gerrit-Branch: master
Gerrit-Owner: Muehlenhoff <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits