@ -1156,9 +1156,9 @@ static void process_branch(struct blob_attr *branch, bool only_active)
/* mandatory fields */
/* mandatory fields */
if ( ! ( tb [ BRANCH_ENABLED ] & & blobmsg_get_bool ( tb [ BRANCH_ENABLED ] ) & &
if ( ! ( tb [ BRANCH_ENABLED ] & & blobmsg_get_bool ( tb [ BRANCH_ENABLED ] ) & &
tb [ BRANCH_NAME ] & & tb [ BRANCH_PATH ] ) & & tb [ BRANCH_PATH_PACKAGES ] & &
tb [ BRANCH_NAME ] & & tb [ BRANCH_PATH ] & & tb [ BRANCH_PATH_PACKAGES ] & &
tb [ BRANCH_UPDATES ] & & tb [ BRANCH_PUBKEY ] & & tb [ BRANCH_REPOS ] & &
tb [ BRANCH_UPDATES ] & & tb [ BRANCH_PUBKEY ] & & tb [ BRANCH_REPOS ] & &
tb [ BRANCH_VERSIONS ] & & tb [ BRANCH_TARGETS ] )
tb [ BRANCH_VERSIONS ] & & tb [ BRANCH_TARGETS ] ) )
return ;
return ;
brname = blobmsg_get_string ( tb [ BRANCH_NAME ] ) ;
brname = blobmsg_get_string ( tb [ BRANCH_NAME ] ) ;
@ -1707,15 +1707,15 @@ int main(int args, char *argv[]) {
else if ( revcmp > 0 )
else if ( revcmp > 0 )
upg_check | = PKG_DOWNGRADE ;
upg_check | = PKG_DOWNGRADE ;
if ( ( rc = request_packages ( branch ) ) )
goto freebranches ;
if ( release_only & & ! ( upg_check & PKG_UPGRADE ) ) {
if ( release_only & & ! ( upg_check & PKG_UPGRADE ) ) {
fprintf ( stderr , " Nothing to be updated. Use '-f' to force. \n " ) ;
fprintf ( stderr , " Nothing to be updated. Use '-f' to force. \n " ) ;
rc = 0 ;
rc = 0 ;
goto freebranches ;
goto freebranches ;
}
}
if ( ( rc = request_packages ( branch ) ) )
goto freebranches ;
upg_check | = check_installed_packages ( reqbuf . head ) ;
upg_check | = check_installed_packages ( reqbuf . head ) ;
if ( upg_check & PKG_ERROR ) {
if ( upg_check & PKG_ERROR ) {
rc = - ENOPKG ;
rc = - ENOPKG ;