2015-02-02 22:25:30 +00:00
|
|
|
/* Copyright 2013-2015 MultiMC Contributors
|
2013-11-04 01:53:05 +00:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QJsonArray>
|
|
|
|
|
2014-01-24 17:12:02 +00:00
|
|
|
#include "OneSixLibrary.h"
|
|
|
|
#include "OneSixRule.h"
|
2013-09-15 23:54:39 +01:00
|
|
|
#include "OpSys.h"
|
2013-12-13 14:58:11 +00:00
|
|
|
#include "logic/net/URLConstants.h"
|
2014-01-18 02:32:31 +00:00
|
|
|
#include <pathutils.h>
|
|
|
|
#include <JlCompress.h>
|
|
|
|
#include "logger/QsLog.h"
|
2013-11-04 01:53:05 +00:00
|
|
|
|
2014-05-11 11:37:21 +01:00
|
|
|
OneSixLibrary::OneSixLibrary(RawLibraryPtr base)
|
|
|
|
{
|
|
|
|
m_name = base->m_name;
|
|
|
|
m_base_url = base->m_base_url;
|
|
|
|
m_hint = base->m_hint;
|
|
|
|
m_absolute_url = base->m_absolute_url;
|
|
|
|
extract_excludes = base->extract_excludes;
|
2014-07-19 22:16:02 +01:00
|
|
|
m_native_classifiers = base->m_native_classifiers;
|
2014-05-11 11:37:21 +01:00
|
|
|
m_rules = base->m_rules;
|
2014-07-26 22:00:35 +01:00
|
|
|
dependType = base->dependType;
|
|
|
|
// these only make sense for raw libraries. OneSix
|
|
|
|
/*
|
|
|
|
insertType = base->insertType;
|
|
|
|
insertData = base->insertData;
|
|
|
|
*/
|
2014-05-11 11:37:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
OneSixLibraryPtr OneSixLibrary::fromRawLibrary(RawLibraryPtr lib)
|
|
|
|
{
|
|
|
|
return OneSixLibraryPtr(new OneSixLibrary(lib));
|
|
|
|
}
|