X7ROOT File Manager
Current Path:
/usr/lib/rpm
usr
/
lib
/
rpm
/
📁
..
📄
appdata.prov
(333 B)
📄
brp-compress
(1.41 KB)
📄
brp-java-gcjcompile
(1.38 KB)
📄
brp-python-bytecompile
(2.96 KB)
📄
brp-python-hardlink
(658 B)
📄
brp-strip
(509 B)
📄
brp-strip-comment-note
(741 B)
📄
brp-strip-shared
(706 B)
📄
brp-strip-static-archive
(411 B)
📄
check-buildroot
(1.21 KB)
📄
check-files
(1.02 KB)
📄
check-prereqs
(418 B)
📄
check-rpaths
(1.01 KB)
📄
check-rpaths-worker
(4.93 KB)
📄
config.guess
(44.24 KB)
📄
config.sub
(34.62 KB)
📄
debugedit
(33.01 KB)
📄
desktop-file.prov
(602 B)
📄
elfdeps
(15.31 KB)
📁
fileattrs
📄
find-debuginfo.sh
(14.42 KB)
📄
find-lang.sh
(5.77 KB)
📄
find-provides
(1.52 KB)
📄
find-requires
(3.43 KB)
📄
fontconfig.prov
(489 B)
📄
gstreamer1.prov
(954 B)
📄
javadoc.req
(76 B)
📄
kabi.sh
(428 B)
📄
libtooldeps.sh
(718 B)
📄
macros
(37.33 KB)
📁
macros.d
📄
macros.perl
(473 B)
📄
macros.php
(192 B)
📄
macros.python
(906 B)
📄
maven.prov
(3.67 KB)
📄
maven.req
(7.75 KB)
📄
mkinstalldirs
(3.41 KB)
📄
mono-find-provides
(1.08 KB)
📄
mono-find-requires
(1.87 KB)
📄
ocaml-find-provides.sh
(1.62 KB)
📄
ocaml-find-requires.sh
(2.08 KB)
📄
osgi.prov
(3.51 KB)
📄
osgi.req
(3.79 KB)
📄
osgideps.pl
(10.33 KB)
📄
perl.prov
(5.72 KB)
📄
perl.req
(11.48 KB)
📄
perldeps.pl
(32.13 KB)
📄
pkgconfigdeps.sh
(1.25 KB)
📁
platform
📄
postscriptdriver.prov
(7.08 KB)
📄
pythondeps.sh
(875 B)
📁
redhat
📄
rpm.daily
(296 B)
📄
rpm.log
(61 B)
📄
rpm.supp
(688 B)
📄
rpm2cpio.sh
(1.3 KB)
📄
rpmdb_dump
(15.33 KB)
📄
rpmdb_load
(27.51 KB)
📄
rpmdb_loadcvt
(1.43 KB)
📄
rpmdb_recover
(11.33 KB)
📄
rpmdb_stat
(15.26 KB)
📄
rpmdb_upgrade
(11.23 KB)
📄
rpmdb_verify
(11.25 KB)
📄
rpmdeps
(11.52 KB)
📄
rpmpopt-4.11.3
(9.51 KB)
📄
rpmrc
(15.01 KB)
📄
script.req
(322 B)
📄
sepdebugcrcfix
(15.24 KB)
📄
tcl.req
(2.02 KB)
📄
tgpg
(929 B)
Editing: osgi.req
#!/usr/bin/python # Copyright (c) 2011, Red Hat, Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of Red Hat nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Authors: Alexander Kurtakov <akurtako@redhat.com> import sys import os.path import zipfile from zipfile import ZipFile class TagBuilder: def __init__ (self, filelist=None): if filelist == None: filelist = sys.stdin paths = map (lambda x: x.rstrip (), filelist.readlines ()) for path in paths: self.get_osgi_require (path) def normalize_manifest(self, manifest): lines = [] for line in manifest.readlines(): if line.startswith(' '): lines[-1] += line.strip() else: lines.append(line.strip()) return lines def parse_manifest (self, manifest): headers = {} DELIM = ": " for line in self.normalize_manifest(manifest): split = line.split(DELIM) if len(split) > 1: name = split[0].strip() headers[name]= split[1].strip() return headers def split_bundle_name (self, bundles): bundlenames = [] bundleline = "" for bundle in bundles.split(','): if not bundle: continue if "(" in bundle or "[" in bundle: bundleline = bundle continue if bundleline: bundle = bundleline + bundle if ":=optional" in bundle: bundleline = "" continue if ";" in bundle: bundlenames.append(bundle.split(";")[0].strip()) else: bundlenames.append(bundle.strip()) bundleline = "" return bundlenames def get_osgi_require (self, path): if not os.path.islink(path): if zipfile.is_zipfile(path): jarfile = ZipFile(path) if "META-INF/MANIFEST.MF" in jarfile.namelist(): manifest = jarfile.open("META-INF/MANIFEST.MF") headers = self.parse_manifest(manifest) if headers.get("Require-Bundle"): for bundle in self.split_bundle_name(headers.get("Require-Bundle")): if bundle != "system.bundle": print "osgi(%s)" %(bundle) if __name__ == "__main__": builder = TagBuilder ()
Upload File
Create Folder