def import from_mirror, kwargs={}
      deps = kwargs.arg :deps, false
      packages = kwargs.arg :packages, []

      if packages.length == 0
        raise AptlyError.new '1 or more packages are required'
      end

      cmd = 'aptly repo import'
      cmd += ' -with-deps' if deps
      cmd += " #{from_mirror.quote} #{@name.quote}"
      packages.each {|p| cmd += " #{p.quote}"}

      Aptly::runcmd cmd
    end
def import from_mirror, kwargs={}
      deps = kwargs.arg :deps, false
      packages = kwargs.arg :packages, []

      if packages.length == 0
        raise AptlyError.new '1 or more packages are required'
      end

      cmd = 'aptly repo import'
      cmd += ' -with-deps' if deps
      cmd += " #{from_mirror.quote} #{@name.quote}"
      packages.each {|p| cmd += " #{p.quote}"}

      Aptly::runcmd cmd
    end
Imports package resources from existing mirrors

 == Parameters:
 from_mirror::
   The name of the mirror to import from
 packages::
   A list of debian pkg_spec strings (e.g. "libc6 (>= 2.7-1)")
 deps::
   When true, follows package dependencies and adds them