Skip to content
Snippets Groups Projects
  • Minecrell's avatar
    0ffb448d
    CI: common: fixup get_changed_packages() (!1069) · 0ffb448d
    Minecrell authored and Oliver Smith's avatar Oliver Smith committed
    At the moment the function does not handle all cases correctly.
    For example, it cannot say which package was changed when a file
    in a subdirectory of a package was changed.
    
    This is used e.g. in device-samsung-golden:
    
        device-samsung-golden
        ├── APKBUILD
        ├── deviceinfo
        ├── downstream
        │   ├── init-usb-hook.sh
        │   ├── module-config.conf
        │   └── modules-load.conf
        └── kwin.sh
    
    At the moment, changing a file under "downstream" would attempt
    building a "downstream" package, instead of device-samsung-golden.
    
    Refactor the function a bit to walk up the directory hierarchy,
    until we find an APKBUILD.
    0ffb448d
    History
    CI: common: fixup get_changed_packages() (!1069)
    Minecrell authored and Oliver Smith's avatar Oliver Smith committed
    At the moment the function does not handle all cases correctly.
    For example, it cannot say which package was changed when a file
    in a subdirectory of a package was changed.
    
    This is used e.g. in device-samsung-golden:
    
        device-samsung-golden
        ├── APKBUILD
        ├── deviceinfo
        ├── downstream
        │   ├── init-usb-hook.sh
        │   ├── module-config.conf
        │   └── modules-load.conf
        └── kwin.sh
    
    At the moment, changing a file under "downstream" would attempt
    building a "downstream" package, instead of device-samsung-golden.
    
    Refactor the function a bit to walk up the directory hierarchy,
    until we find an APKBUILD.