Changeset 26413


Ignore:
Timestamp:
06/21/10 13:48:35 (7 years ago)
Author:
xfade
Message:

Remove hardcoded arch in apt api

Location:
branches/ragnaroek/midcom/org.maemo.packages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/org.maemo.packages/handler/packageinstance/apt.php

    r26193 r26413  
    116116
    117117        $this->_package_instance = &$filtered_instances;
    118         $this->_repository = &$repository;
     118        $this->_repository = &$repository[0];
    119119//        $this->_package = &$package[0];
    120120
     
    277277    function _show_install($handler_id, &$data)
    278278    {
     279        $this->_request_data['repository'] = $this->_repository;
    279280        foreach ($this->_package_instance as $package_instance)
    280281        {
  • branches/ragnaroek/midcom/org.maemo.packages/style/apt_install_item.php

    r26248 r26413  
    33$package = $data['package'];
    44$package_instance = $data['package_instance'];
     5$repository = $data['repository'];
    56$depends = htmlspecialchars_decode($package_instance->depends);
    67$predepends = htmlspecialchars_decode($package_instance->predepends);
     
    2526Installed-Size: &(package_instance->installedsize);
    2627
    27 Architecture: armel
     28Architecture: &(repository->arch);
     29
    2830Version: &(package_instance->version);
    2931
Note: See TracChangeset for help on using the changeset viewer.