Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
geronimo-specs
undot.py
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File undot.py of Package geronimo-specs
#!/usr/bin/python # remove dots from package names, as they are not allowed in SUSE # # Usage: # cat geronimo-specs.spec | ./undot.py > geronimo-specs.new.spec # gvimdiff geronimo-specs.spec geronimo-specs.new.spec # review import re import sys regexp = re.compile(r'^(Requires|%package|%description|%post|%postun|%pre|%preun|%files|BuildRequires|PreReq|Provides).*') oregexp = re.compile(r'[<=>]') for line in sys.stdin: if regexp.search(line): m = oregexp.search(line) if m: line = line[:m.start()].replace('.', '_') + line[m.start():] else: line = line.replace('.', '_') sys.stdout.write(line)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor