Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/autoproj/default.osdeps
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,7 @@ apt-transport-https:
ubuntu,debian: apt-transport-https
default: ignore

subpackage:
default: ignore

# vim: expandtab
4 changes: 2 additions & 2 deletions lib/autoproj/vcs_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ def self.from_raw(spec_str = nil, from: nil, raw: [], history: [], **spec_hash)
"which does not have a VCS type"
end

if !(url = normalized_spec.delete(:url)) && type != "none"
if !(url = normalized_spec.delete(:url)) && type != "none" && type != "subpackage"
raise ArgumentError,
"the source specification #{raw_spec_to_s(spec)} normalizes "\
"into #{raw_spec_to_s(normalized_spec)}, "\
"which does not have a URL. "\
"Only VCS of type 'none' do not require one"
"Only VCS of type 'none' or 'subpackage' do not require one"
end

VCSDefinition.new(
Expand Down
Loading