Skip to content

Commit

Permalink
Merge pull request #131 from yegorich/udeb-support
Browse files Browse the repository at this point in the history
Add udeb file support
  • Loading branch information
yegorich authored Sep 13, 2023
2 parents a1884d2 + ac35369 commit e6509ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/freight-add
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ done
# to be `<manager>/<distro>` pairs for this (source) package.
while [ "$#" -gt 0 ]; do
case "$1" in
*.deb | *.ddeb | *.dsc | *.orig.tar.gz | *.orig.tar.bz2 | *.orig.tar.xz | *.orig.tar.lzma | *.diff.gz | *.debian.tar.gz | *.debian.tar.bz2 | *.debian.tar.xz | *.debian.tar.lzma | *.tar.gz | *.tar.bz2 | *.tar.xz | *.tar.lzma | *.git)
*.deb | *.ddeb | *.udeb | *.dsc | *.orig.tar.gz | *.orig.tar.bz2 | *.orig.tar.xz | *.orig.tar.lzma | *.diff.gz | *.debian.tar.gz | *.debian.tar.bz2 | *.debian.tar.xz | *.debian.tar.lzma | *.tar.gz | *.tar.bz2 | *.tar.xz | *.tar.lzma | *.git)
# shellcheck disable=SC2153
PATHNAMES="$PATHNAMES $1" shift
;;
Expand Down Expand Up @@ -92,8 +92,8 @@ for PATHNAME in $PATHNAMES; do
for DIRNAME in "$@"; do
mkdir -p "$DIRNAME"
case "$FILENAME" in
*_*_*.deb | *_*_*.ddeb) add "$FILENAME" "$DIRNAME" "$PATHNAME" ;;
*.deb | *.ddeb)
*_*_*.deb | *_*_*.ddeb | *_*_*.udeb) add "$FILENAME" "$DIRNAME" "$PATHNAME" ;;
*.deb | *.ddeb | *.udeb)
. "$(dirname "$(dirname "$0")")/lib/freight/apt.sh"
dpkg-deb -I "$TMP/$FILENAME" "control" >"$TMP/$FILENAME-control"
DEBNAME="$(
Expand Down
2 changes: 1 addition & 1 deletion lib/freight/apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ apt_cache() {
case "$PATHNAME" in

# Binary packages.
*.deb | *.ddeb) apt_cache_binary "$DIST" "$DISTCACHE" "$PATHNAME" "$COMP" "$PACKAGE" ;;
*.deb | *.ddeb | *.udeb) apt_cache_binary "$DIST" "$DISTCACHE" "$PATHNAME" "$COMP" "$PACKAGE" ;;

# Source packages. The *.dsc file is considered the "entrypoint"
# and will find the associated *.orig.tar.*, *.diff.*, *.tar.*, or
Expand Down
2 changes: 1 addition & 1 deletion man/man1/freight-add.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ freight-add(1) -- add a package to Freight

## DESCRIPTION

`freight-add` registers _package_ with one or more _manager_/_distro_[/_component_] pairs (or triples). Currently, `apt` is the only supported _manager_ and _package_ must be one of _\*.deb_, _\*.ddeb_, _\*.dsc \*.debian.tar.\* \*.orig.tar.\*_, _\*.dsc \*.diff.\* \*.orig.tar.\*_, _\*.dsc \*.tar.\*_, or _\*.dsc \*.git_. _distro_ may be any arbitrary value but is best suited to naming a particular version of the target operating system (for example, "wheezy" or "precise"). _component_ is optional and for `apt` defaults to `main`.
`freight-add` registers _package_ with one or more _manager_/_distro_[/_component_] pairs (or triples). Currently, `apt` is the only supported _manager_ and _package_ must be one of _\*.deb_, _\*.ddeb_, _\*.udeb_, _\*.dsc \*.debian.tar.\* \*.orig.tar.\*_, _\*.dsc \*.diff.\* \*.orig.tar.\*_, _\*.dsc \*.tar.\*_, or _\*.dsc \*.git_. _distro_ may be any arbitrary value but is best suited to naming a particular version of the target operating system (for example, "wheezy" or "precise"). _component_ is optional and for `apt` defaults to `main`.

The package files are organized in the Freight library so `freight-cache`(1) has an easy time of creating package repositories for each _manager_/_distro_[/_component_] later.

Expand Down

0 comments on commit e6509ed

Please sign in to comment.