From mboxrd@z Thu Jan 1 00:00:00 1970 From: rep.dot.nop at gmail.com (Bernhard Reutner-Fischer) Date: Thu, 9 Jun 2016 17:32:58 +0200 Subject: [PATCH] ui-repolist: Tweak max-repo-count handling In-Reply-To: References: <1434629912-13473-1-git-send-email-rep.dot.nop@gmail.com> <20150618130215.GI18226@serenity.lan> Message-ID: On 18 June 2015 at 15:48, Bernhard Reutner-Fischer wrote: > On 18 June 2015 at 15:02, John Keeping wrote: >> On Thu, Jun 18, 2015 at 02:18:32PM +0200, Bernhard Reutner-Fischer wrote: >>> A max-repo-count less than or equal to 0 now disables repository >>> pagination. >>> >>> Previously a value of 0 or smaller went into an infinite loop just >>> printing pagination links without any repo. >> >> This feels a bit fragile, in that ever use of the max_repo_count >> variable needs to check this explicitly. Would it be better to simply >> set the value to MAX_INT if the config file has a value <= 0? > > Conceptually it feels wrong to use a (high) number to turn something off. That's why i made 0 disable it, yes. I'm open to other ideas to disable pagination. I just want to be able to turn it off somehow.. thanks,