#8935 Critpath adjustments to at least make it run
Opened 4 months ago by churchyard. Modified 2 months ago
churchyard/releng critpath  into  master

file modified
+5 -5

@@ -27,10 +27,10 @@ 

      '@critical-path-gnome', '@critical-path-kde', '@critical-path-lxde',

      '@critical-path-xfce'

  ]

- primary_arches=('armhfp', 'x86_64')

- alternate_arches=('i386','aarch64','ppc64','ppc64le','s390x')

+ primary_arches=('armhfp', 'aarch64', 'x86_64')

+ alternate_arches=('ppc64le','s390x')

  # There is not current a programmatic way to generate this list

- fakearch = {'i386':'i686', 'x86_64':'x86_64', 'ppc64':'ppc64', 'ppc':'ppc64', 'armhfp':'armv7hl', 'aarch64':'aarch64', 'ppc64le':'ppc64', 's390x':'s390x'}

+ fakearch = {'i386':'i686', 'x86_64':'x86_64', 'ppc64':'ppc64', 'ppc':'ppc64', 'armhfp':'armv7hl', 'aarch64':'aarch64', 'ppc64le':'ppc64le', 's390x':'s390x'}

  fedora_baseurl = 'http://dl.fedoraproject.org/pub/fedora/linux/'

  fedora_alternateurl = 'http://dl.fedoraproject.org/pub/fedora-secondary/'

  releasepath = {

@@ -42,13 +42,13 @@ 

      'rawhide': ''

  }

  

- for x in range(12,27,1):

+ for x in range(12,32,1):

      r = str(x)

      releasepath[r] = 'releases/%s/Everything/$basearch/os/' % r

      updatepath[r] = 'updates/%s/$basearch/' % r

  

  # Branched Fedora goes here

- branched = '28'

+ branched = '31'

  releasepath['branched'] = 'development/%s/Everything/$basearch/os' % branched

  updatepath['branched'] = ''

  

file modified
+2 -2

@@ -26,13 +26,13 @@ 

      parser = setup_args()

      args = parser.parse_args()

  

-     pdc = pdc_client.PDCClient('fedora')

+     pdc = pdc_client.PDCClient('fedora', develop=True)

should this still be here, or was it just something you were using to work on the script?

I get error 401 otherwise. suggested by @mizdebsk

  

      endpoint = pdc['component-branches']

      kwargs = dict(name=args.branch, active=True)

      existing = pdc.get_paged(endpoint, **kwargs)

      try:

-         existing.next()

+         next(existing)

      except StopIteration:

          print("%s not a valid branch." % args.branch, file=sys.stderr)

          sys.exit(1)

Did not touch the arch list (no idea how fakearch is supposed to work)

rebased onto 27ca2d0

4 months ago

should this still be here, or was it just something you were using to work on the script?

I get error 401 otherwise. suggested by @mizdebsk

@churchyard Can you rebase this PR?

Thanks.

rebased onto 645c665

4 months ago

rebased onto 2439c67

2 months ago