• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

postmarketOS / pmbootstrap
76%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/chroot-buildroot-architecture
DEFAULT BRANCH: master
Repo Added 24 Oct 2017 04:26PM UTC
Files 392
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/1241-zap-m-delete-old-pkgs-too
branch: feature/1241-zap-m-delete-old-pkgs-too
CHANGE BRANCH
x
Reset
  • feature/1241-zap-m-delete-old-pkgs-too
  • 0.3.0
  • 0.4.0
  • 0.5.0
  • 0.6.0
  • bshah/calls-hammerhead
  • check-dtbtool-qcdt
  • default-bootimg-qcdt
  • device-asus-tf300t
  • device-jolla-sbj
  • device-lg-bullhead
  • device-samsung-g930f
  • device/huawei-y530-cleanup
  • device/kernel-APKBUILD-cleanup
  • device/lg-mako
  • device/motorola-maserati
  • device/raspberry-pi
  • device/samsung-i9070-fix
  • device/samsung-i9070-mesa-subpackage
  • device/samsung-klte
  • device/samsung-klte-mainline
  • device/samsung-maguro
  • device/samsung-maguro-firmware
  • device/wiko-lenny3
  • deviceinfo_parse
  • drebrez-patch-1
  • falkon-disable-checks
  • feature/1013-depend-on-mesa-dri-swrast
  • feature/1041-kernel-local-git-repo
  • feature/1049-split-install
  • feature/1065-disallow-running-as-root
  • feature/1175-tmpfs-in-chroot-dev-folder
  • feature/1263-init-choose-kernel
  • feature/453-qmu-virtio
  • feature/574_swap_file
  • feature/756-make-proprietary-software-optional
  • feature/865-check-APKBUILD-line-endings
  • feature/anbox
  • feature/apk-file
  • feature/aportgen-linux-output-dir
  • feature/better-depends-error
  • feature/binutils_gcc_musl_x86
  • feature/bullhead-osk-sdl
  • feature/charging-sdl
  • feature/chroot-buildroot-architecture
  • feature/config-init-ccache-size
  • feature/coveralls
  • feature/debug-shell
  • feature/debug-shell-fbdebug
  • feature/delete_old_packages
  • feature/devicepkg-generate-udev-rules
  • feature/enable-binary-repository
  • feature/enable_distcc_for_repack
  • feature/envkernel.sh
  • feature/fbdebug
  • feature/flash_method_none
  • feature/flasher-fastboot-vendor-id
  • feature/flasher-flash-rootfs-instead-of-system
  • feature/grouper_add_osk_config
  • feature/hybris
  • feature/implement_gitlab_ci
  • feature/improved-pmbootstrap-init
  • feature/init-create-device-linux-aport
  • feature/initramfs-debug-shell-files
  • feature/kconfig-check-config-pft
  • feature/libhybris
  • feature/linux-postmarketos-hammerhead-the-2nd
  • feature/matchbox-keyboard
  • feature/msm-refresher-initfs-hook
  • feature/n900-swiss-german-keyboard
  • feature/networkmanager
  • feature/nheko
  • feature/nonfree-optional-part2
  • feature/only-download-necessary-apkindex-files
  • feature/ordered_ui_selection
  • feature/parse_bootimg
  • feature/phosh
  • feature/pmbootstrap-log-msg-not-in-logfile
  • feature/pmbootstrap-timeout
  • feature/postmarketos-ui-i3
  • feature/postmarketos-ui-mate
  • feature/qemu-running-processes
  • feature/qemu-user-static-repack-all-arch
  • feature/raspberry-pi-no-dhcpcd
  • feature/readme-remove-telnet-unlock
  • feature/readme-update
  • feature/recovery-chroot
  • feature/remove-werror-in-kbuild
  • feature/set-hostname
  • feature/test-upstream-compatibility-for-aportgen-packages
  • feature/travis-device-documentation-check
  • feature/travis-find-changemes
  • feature/travis-output-folding
  • feature/ui-mate-pmos-wallpaper
  • feature/ui-weston-pmos-wallpaper
  • feature/wireguard
  • feature/wrap-newapkbuild
  • feature/x86_64_cross_compilation
  • feature/x86_support
  • feature/xfce4-improvements
  • firmware-adreno-4xx
  • fix/1017-qemu-arm
  • fix/1033-disable-v4l-properly
  • fix/1061-strict-depend-native-cross
  • fix/1066-permisson-error-bootimg
  • fix/1071-shadow-su-wrong-path
  • fix/1072-rm-rf-tempdir-odin
  • fix/1122-pmbootstrap-picks-wrong-so-provider
  • fix/1128-require-valid-device-for-testsuite
  • fix/1144-version-validation-corner-case
  • fix/1186-device-has-pmbootstrap-repo
  • fix/1212-all-depends-marked-as-explicitly-installed
  • fix/1220-build-resolve-provides
  • fix/1272-aportgen-handle-old-git-checkout
  • fix/1273-missing-key-timestamp
  • fix/1287-can-only-concatenate-list
  • fix/1298-make-copied-aport-world-readable
  • fix/1302-newapkbuild-argparse
  • fix/1344-resolver-fuzzy-versions
  • fix/1351-dependency-resolver-hangs
  • fix/1353-init-ask-ssh-keys
  • fix/1364-ext4-metadata-csum
  • fix/1379-pkgrel_bump-subpackages
  • fix/1405-initfs-hook-ls-output
  • fix/1431-user-not-in-video-group
  • fix/1444-binfmt-misc-check
  • fix/1458-gcc-armhf-strict
  • fix/1551-pmbootstrap-kconfig-edit
  • fix/312-mkinitfs-fail-on-missing-depends
  • fix/672-qemu-amd64-xfce4-broken
  • fix/700_rx51_udev_trigger
  • fix/716-ccache-distcc
  • fix/722-install-fails-on-fedora
  • fix/818_clear_repo_list_after_zap
  • fix/831-check-if-work-is-inside-pmbootstrap-folder
  • fix/839-check-pkgvers
  • fix/839-invalid-pkgvers
  • fix/869-resize-qemu-partition
  • fix/893-handle-soname-bumps
  • fix/897_fastboot_max_filesize
  • fix/928-no-space-left
  • fix/941-refactor-cleanup
  • fix/948-depends-recurse-forever
  • fix/949-check-if-work-folder-exists
  • fix/955-unwanted-rebuilds
  • fix/960-disable-root-login
  • fix/968-cache-built-packages-list
  • fix/abootimg_all_architectures
  • fix/apk-file-update
  • fix/build-is-necessary-default-arch
  • fix/build-src-foreign-arch
  • fix/choose-right-gtk2
  • fix/cleanup_networking
  • fix/device-pkgs-depend-on-pmos-base
  • fix/distfiles-permissions
  • fix/downloading-native-apkindex-twice
  • fix/dtbTool-version-detection
  • fix/flasher-depends
  • fix/ignore_vscode
  • fix/incorrect-package-metadata
  • fix/index-with-README
  • fix/initramfs-framebuffer-mode
  • fix/install-wrong-device-kernel
  • fix/kconfig-allow-devtmpfs-mount
  • fix/lingering_broken_cache_apk_symlink
  • fix/linux-pmos-mainline-makedepends
  • fix/linux-samsung-i9003-paranoid
  • fix/mdss-fb-hack
  • fix/menuconfig-arch
  • fix/missing-dev-nodes-after-shutdown
  • fix/move_flash_methods_variable
  • fix/musl-version
  • fix/odin-export-default-partitions
  • fix/odin-export-regression
  • fix/pmb-chroot-user-escaping
  • fix/pmbootstrap-zap-m
  • fix/qemu-flavor
  • fix/random-depends
  • fix/raspberry-pi-firmware
  • fix/readme-requirements
  • fix/recovery-copy-files
  • fix/recovery-fstab-regex
  • fix/recovery-tar-extract
  • fix/rx51_uboot_stable_kernel
  • fix/smarter-build-arch-autodetect
  • fix/test-build-package-testcase
  • fix/travis-apk-progress-screwup
  • fix/travis-apkindex-not-found-messages
  • fix/travis-qemu-test-case
  • fix/unregister-all-binfmt-architectures
  • fix/xorg-on-hammerhead
  • flash-method-singular
  • fp2-firmware
  • init-manufacturer
  • kde-connect
  • kernel-updates
  • konsole-fix
  • martijnbraam/hammerhead-cleanup
  • martijnbraam/new-wallpaper
  • martijnbraam/postmarketos-qcom-networking
  • master
  • method-info
  • peruse-comic-book-reader-app
  • pmbootstrap-feature/756-move-firmware-folder
  • postmarketos-ui-luna
  • postmarketos-ui-plasma-mobile
  • qemu-kernel-flavors
  • recovery-single-logfile
  • refactor/pmb-build-package
  • refactor/remove-obsolete-challenge-code
  • remove/buildinfo
  • remove/temp-rpi-bootloader
  • remove/timestamp-based-rebuilds
  • titan-osk-sdl
  • titan-wifi-firmware
  • unicsy-2
  • update/linux-4.13.10
  • update/linux-4.13.11
  • update/linux-postmarketos-stable-4.14
  • update/linux-postmarketos-stable-4.14.2
  • update/linux-postmarketos-stable-4.14.9
  • update/linux-postmarketos-stable_4.13.12
  • update/osk-sdl
  • update/osk-sdl-0.51
  • workaround/1055-package-both-dtbtools
  • workaround/936-qemu-lts-kernel
  • workaround/aarch64-abuild-tar-qemu
  • workaround/qml-compile-for-armv7
  • workaround/weston-disable-rdp

pending completion
4344

push

travis-ci

ollieparanoid
pmbootstrap zap -m: delete outdated packages too

`-m` is for deleting local compiled packages, for which there is no
aport with the same version. Prior to this change, this only worked
for packages where no aport exists, or for packages that are newer
than the aports.

That is, because we used the usual APKINDEX parsing logic, which
ignores old packages in the APKINDEX and only returns the one with the
highest version (that makes sense during dependency resolution).

Changes:
* New `pmb.parse.apkindex.parse_blocks()` function that returns a raw
  list of blocks, instead of the dict with removed duplicates with
  lower version you get from the usual `.parse()` function.
* Renamed each of the zap flags and their descriptions to make clear
  what they are doing now.
  ```
  short  long (old)         long (new)
  -p     --packages         --pkgs-local
  -m     --mismatch-bins    --pkgs-local-mismatch
  -o,    --old-bins         --pkgs-online-mismatch
  ```

2975 of 3916 relevant lines covered (75.97%)

0.76 hits per line

Relevant lines Covered
Build:
Build:
3916 RELEVANT LINES 2975 COVERED LINES
0.76 HITS PER LINE
Source Files on feature/1241-zap-m-delete-old-pkgs-too
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
4344 feature/1241-zap-m-delete-old-pkgs-too pmbootstrap zap -m: delete outdated packages too `-m` is for deleting local compiled packages, for which there is no aport with the same version. Prior to this change, this only worked for packages where no aport exists, or for packages that are ... push 08 Mar 2018 10:12PM UTC ollieparanoid travis-ci pending completion  
See All Builds (1844)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc