[med-svn] [Git][med-team/centrifuge][upstream] New upstream version 1.0.4.2
Étienne Mollier (@emollier)
gitlab at salsa.debian.org
Mon Oct 28 21:55:37 GMT 2024
Étienne Mollier pushed to branch upstream at Debian Med / centrifuge
Commits:
98e099ed by Étienne Mollier at 2024-10-28T22:50:13+01:00
New upstream version 1.0.4.2
- - - - -
1 changed file:
- centrifuge-inspect
Changes:
=====================================
centrifuge-inspect
=====================================
@@ -19,12 +19,32 @@
along with Centrifuge. If not, see <http://www.gnu.org/licenses/>.
"""
-
+import sys
import os
-import imp
+#import imp
import inspect
import logging
+def build_args():
+ """
+ Parse the wrapper arguments. Returns the options,<programm arguments> tuple.
+ """
+
+ parsed_args = {}
+ to_remove = []
+ argv = sys.argv[:]
+ for i, arg in enumerate(argv):
+ if arg == '--debug':
+ parsed_args[arg] = ""
+ to_remove.append(i)
+ elif arg == '--verbose':
+ parsed_args[arg] = ""
+ to_remove.append(i)
+
+ for i in reversed(to_remove):
+ del argv[i]
+
+ return parsed_args, argv
def main():
@@ -35,8 +55,8 @@ def main():
curr_script = os.path.realpath(inspect.getsourcefile(main))
ex_path = os.path.dirname(curr_script)
inspect_bin_spec = os.path.join(ex_path, "centrifuge-inspect-bin")
- bld = imp.load_source('centrifuge-build', os.path.join(ex_path,'centrifuge-build'))
- options,arguments = bld.build_args()
+ #bld = imp.load_source('centrifuge-build', os.path.join(ex_path,'centrifuge-build'))
+ options,arguments = build_args()
if '--verbose' in options:
logging.getLogger().setLevel(logging.INFO)
View it on GitLab: https://salsa.debian.org/med-team/centrifuge/-/commit/98e099ed8a57fce2fa812f76b53779536923d905
--
View it on GitLab: https://salsa.debian.org/med-team/centrifuge/-/commit/98e099ed8a57fce2fa812f76b53779536923d905
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20241028/b297ca8d/attachment-0001.htm>
More information about the debian-med-commit
mailing list