#1212 backend: copr repo to respect .disable-appstream
Merged 4 years ago by praiskup. Opened 4 years ago by praiskup.

file modified
+7
@@ -148,6 +148,12 @@

  

  def add_appdata(opts):

      if opts.devel or opts.no_appstream_metadata:

+         opts.log.info("appstream-builder skipped, /devel subdir or "

+                       "--no-appstream-metadata specified")

+         return

+ 

+     if os.path.exists(os.path.join(opts.projectdir, ".disable-appstream")):

+         opts.log.info("appstream-builder skipped, .disable-appstream file")

          return

  

      path = opts.directory
@@ -244,6 +250,7 @@

  def process_directory_path(opts):

      helper_path = os.path.abspath(opts.directory)

      helper_path, opts.chroot = os.path.split(helper_path)

+     opts.projectdir = helper_path

      helper_path, opts.dirname = os.path.split(helper_path)

      helper_path, opts.ownername = os.path.split(helper_path)

      opts.projectname = opts.dirname.split(':')[0]

no initial comment

rebased onto a7dcce31f8ba125bebd73ec903c4e760129e5cb1

4 years ago

rebased onto 0aabc05

4 years ago

Pull-Request has been merged by praiskup

4 years ago