Skip to content

Commit

Permalink
Add basic support for OpenWRT #2376
Browse files Browse the repository at this point in the history
- Include list of installed_db paths in Package models
- Enable recognize() for OpenWRT installed packages
- Model OpenWRT support after Debian to collect .control files, .ipk
  tarballs and status database and its info files

Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Jun 4, 2021
1 parent 5d33b05 commit 4f71c59
Show file tree
Hide file tree
Showing 4 changed files with 521 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/packagedcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from packagedcode import npm
from packagedcode import nuget
from packagedcode import opam
from packagedcode import openwrt
from packagedcode import phpcomposer
from packagedcode import pypi
from packagedcode import readme
Expand Down Expand Up @@ -80,6 +81,7 @@
win_pe.WindowsExecutable,
readme.ReadmePackage,
build.MetadataBzl,
openwrt.OpenwrtPackage,
]

PACKAGES_BY_TYPE = {cls.default_type: cls for cls in PACKAGE_TYPES}
Expand Down
5 changes: 4 additions & 1 deletion src/packagedcode/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ class BasePackage(BaseModel):
mimetypes = tuple()
extensions = tuple()
# list of known metafiles for a package type
metafiles = []
metafiles = tuple()

# list of known installation db path for a package type
installed_dbs = tuple()

# Optional. Public default web base URL for package homepages of this
# package type on the default repository.
Expand Down

0 comments on commit 4f71c59

Please sign in to comment.